AW: [PHP] Storing text with carriage returns in MySQL
| From: | Ron Stiemer | Date: | Thu, 15 Jul 2004 19:25:39 +0000 |
| Subject: | AW: [PHP] Storing text with carriage returns in MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190616@lists.php.net to get a copy of this message | ||
Hi Andrew,
I'm also saving html input from textarea fields into my msql DB...but try to
use the filed type TEXT instead of LONGTEXT that it should work fine.
Greetings,
Ron
-----Ursprüngliche Nachricht-----
Von: Andrew Wood [mailto:ajwood@iee.org]
Gesendet: Donnerstag, 15. Juli 2004 21:19
An: php-gen
Betreff: [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