Page 1 of 1

insert into mysql keep original format

Posted: Tue Oct 10, 2006 12:17 pm
by vuacorona
Dear all gurus,

I build a table in MySQL, and in the table has a column name artical with text as datatype. I also have a textbox in the html form. When I pasted some texts from word into this textbox and import into database, then I lost all of the indent as well as newline.

I had searched the forum, but I could find any similar result for my question. Your advise is appreciated.

Again thank you very much for sharing your knowledges.


.

Posted: Tue Oct 10, 2006 12:33 pm
by volka
try

Code: Select all

<html>
	<body>
		<pre>a b  c   d    e
		  xyz</pre>
	</body>
</html>
see http://www.w3.org/TR/html4/struct/text. ... uote]9.3.4 Preformatted text: The PRE element[/quote]

Posted: Tue Oct 10, 2006 12:55 pm
by feyd
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.