Re: text formatting in database article
| From: | J�rg Vidar Bryne | Date: | Sun, 14 Oct 2001 11:36:18 +0000 |
| Subject: | Re: text formatting in database article | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9841@lists.php.net to get a copy of this message | ||
You could use tthe nl2br function.
echo nl2br( $text_from_database );
-J
"Mark Hope" <Mark@Henderson-Grime.com> wrote in message
news:F5201F99C18148468C261910439525382F81@win2kserver.Hendseron-Grime.com...
I am currently creating a website that pulls news articles from a mysql
database into a php page. The article is stored as a TEXT function in
the database, and is inserted by a single form field. What do I need to
do in order for the article to be displayed with the proper paragraph
breaks instead of a the continuous text it is now.
Mark