Text formatting with PHP and MySQL

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
frankpmjr
Forum Commoner
Posts: 26
Joined: Wed Sep 15, 2004 9:13 am

Text formatting with PHP and MySQL

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

[php_man]nl2br[/php_man] this will keep the text formating
frankpmjr
Forum Commoner
Posts: 26
Joined: Wed Sep 15, 2004 9:13 am

Post 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?
Post Reply