Re: Text formatting of articles pulled from database??

2003-03-19 Thread Henning Heil
Landy Atkinson wrote on 19.03.2003 18:14 ... echo "$article"; The text displays, but the paragraph breaks are gone and all the text is just run together into one long paragraph. Any suggestions on how to get $article to display and keep the white space between paragraphs that it ha

Re: Text formatting of articles pulled from database??

2003-03-19 Thread Stefan Hinz
Landy, > echo "$article"; > The text displays, but the paragraph breaks are gone and all the text > is just run together into one long paragraph. In PHP, you can use nl2br(), like: echo "".nl2br($article).""; This will replace "\n" (the new-line character that makes that line break in TEXTARE

Text formatting of articles pulled from database??

2003-03-19 Thread Landy Atkinson
I am setting u a simple article storage/retrieval system and have set up a MySQL database with a few VARCHAR fields for author, date, source and a BLOB field for article. I have also set up two pages, one for editing/adding new articles and a second one for viewing the articles. The adding/de