Storing text with carriage returns in MySQL
| From: | Andrew Wood | Date: | Thu, 15 Jul 2004 19:18:51 +0000 |
| Subject: | Storing text with carriage returns in MySQL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190613@lists.php.net to get a copy of this message | ||
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