RE: [PHP] Storing text with carriage returns in MySQL
| From: | Vail, Warren | Date: | Thu, 15 Jul 2004 19:23:18 +0000 |
| Subject: | RE: [PHP] Storing text with carriage returns in MySQL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190615@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/function.addslashes.php
Warren Vail
-----Original Message-----
From: Andrew Wood [mailto:ajwood@iee.org]
Sent: Thursday, July 15, 2004 12:19 PM
To: php-gen
Subject: [PHP] Storing text with carriage returns in MySQL
I'm trying to use PHP to read text from an HTML textarea form field and
store in in MySQL using the longtext data type but it's cutting off
everything after the first carriage return. I suspect I need to iterate
through the text looking for CRs then do something? But I don't know what.
Can anyone offer any pointers?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php