The line breaks may be there, but HTML will not render them.

Try this:

  $outputstring = nl2br($stringfromDB);


or something like this to see if the newlines will convert to <br> and
render correctly.


On Fri, 6 Jul 2001, Mat Marlow wrote:

>-Hi all,
>-(I'm not sure if this is the right place to submit this but I'm having
>-problems with the php.general group)
>-I am in desperate need for a solution to HTML text fields not storing new
>-lines. I'm storing news articles in a database but all the text just ends up
>-in a big block because it ignores line breaks. Is there a way around this
>-without having to upload text files?
>-PHP Database Mailing List (
>-To unsubscribe, e-mail: [EMAIL PROTECTED]
>-For additional commands, e-mail: [EMAIL PROTECTED]
>-To contact the list administrators, e-mail: [EMAIL PROTECTED]


John Huggins
Virginia Net Corporation
7101 Oriole Avenue
Springfield, VA 22150
703-912-4831 fax



PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to