nl2br() is useful in such cases.


At 11:32 AM 4/9/01 +0800, sam wrote:
>I have this field filled up from within a text area. Something the same as
>that on message boards but something that has more characters in it. I have
>it set to get up to 1500 characters.
>My main problem is that although I tried inserting separate paragraphs (by
>pressing the return/enter key when every paragraph gets finished), when I
>tried viewing them on PHP pages, they still show as one whole paragraph
>without any line breaks (\n).
>My question, how can I save the entries on the database and still show the
>"\n" or next lines, thus being able to separate different paragraphs from
>each other.
>thanks in advance.

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