Page 1 of 1

How to store messages with newline and stuff?

Posted: Tue Sep 07, 2004 6:55 pm
by myleow
I created a simple message system and store the textarea as string before storing it in DB. So when i retrieve it back from DB to display, i lose all the new line and stuff.

How do retain those properties like this board?

Regards
Mian

Posted: Tue Sep 07, 2004 7:05 pm
by John Cartwright
[php_man]nl2br[/php_man]