After retrieving data from MySQL, I display all data on my page (in a <td> tag).
However, the new line character is automatically omitted.
I have checked by filling the data in a textfield, the new line character exists normally.
Please help me how to display the data correctly.
thanks.
Can not display new line character
Moderator: General Moderators
-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
Code: Select all
echo '<td>' . nl2br($data) . '</td>';-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm