Page 1 of 1

Text formatting with PHP and MySQL

Posted: Tue Dec 07, 2004 8:18 pm
by frankpmjr
I have a blog page that is updated from a form. When I process the form, all of the text formatting disappears. So my blog ends up being one really long paragraph. Is this a limitation of PHP, or the db? Will I need something like the buttons above this text area in order to properly format my text? If so how would I find how to do this? Thanks.

Frank

Posted: Tue Dec 07, 2004 8:27 pm
by John Cartwright
[php_man]nl2br[/php_man] this will keep the text formating

Posted: Tue Dec 07, 2004 8:56 pm
by frankpmjr
That worked great, thank you for the help. Do you have something that will allow me to put in spaces or indent a new paragraph?