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?
[SOLVED] Tinytext datatype
Moderator: General Moderators
[SOLVED] Tinytext datatype
Last edited by S_henry on Wed Jun 15, 2005 8:17 pm, edited 1 time in total.
nl2br()
Code: Select all
$str = "
Address A,
Address B,
Address C.
";
echo nl2br($str);