Inserting data from a textarea or something?

If so, have a look at http://www.php.net/nl2br - probably what you're after.

Cheers
Jon


-----Original Message-----
From: Rodney Davis [mailto:[EMAIL PROTECTED]]
Sent: 07 January 2002 17:47
To: [EMAIL PROTECTED]
Subject: [PHP] carriage returns


Sorry for the newbie question but I can't find it in the docs.

How do I preserve carriage returns when inserting into
and extracting data from a mysql db?

I thought htmlspecialchars() would do the trick but it
doesn't.

thanks

-- 
PHP General Mailing List (http://www.php.net/)
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