[SOLVED] Tinytext datatype

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

[SOLVED] Tinytext datatype

Post 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?
Last edited by S_henry on Wed Jun 15, 2005 8:17 pm, edited 1 time in total.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

nl2br()

Code: Select all

$str = "
Address A,
Address B,
Address C.
";
echo nl2br($str);
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

OK. Thanks.. :)
Post Reply