Page 1 of 1

[SOLVED] Tinytext datatype

Posted: Tue Jun 14, 2005 10:01 pm
by S_henry
In my table, i have 1 column (address) and the type is tinytext. For 1 record, lets say i put the address as:

Address A,
Address B,
Address C.

The problem is when i display that record (address) in notepad, it display the record in 3 lines but if i display the record in html, it display the record in 1 lines as 'Address A, Address B, Address C'. So can i display the record in 3 lines in html? Anybody can help me pls?

Posted: Tue Jun 14, 2005 11:58 pm
by anjanesh
nl2br()

Code: Select all

$str = "
Address A,
Address B,
Address C.
";
echo nl2br($str);

Posted: Wed Jun 15, 2005 8:17 pm
by S_henry
OK. Thanks.. :)