Re: Carriage Returns in Text Fields
| From: | Ryan A | Date: | Tue, 03 Sep 2002 11:26:25 +0000 |
| Subject: | Re: Carriage Returns in Text Fields | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115014@lists.php.net to get a copy of this message | ||
Hey,
I myself am a newbie to PHP,
but I believe what you are looking for is the nl2br() function....I presume
you are outputting html.
Hope that helped.
Cheers,
-Ryan.
----- Original Message -----
From: "RoyW" <php@wiegmann.net>
To: <php-general@lists.php.net>
Sent: Tuesday, September 03, 2002 12:42 PM
Subject: [PHP] Carriage Returns in Text Fields
> I have a script which takes a memo field and stuffs it into a "mediumtext"
> column of a MySQL table.
>
> When I spit out the contents of the field, the carriage returns are no
> longer there... how do I maintain the integrity of the paragraphs in text
> fields?
>
> Thanks
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>