Re: multiline text areas and mysql doesn't work :(

From: Date: Sun, 13 May 2001 18:36:12 +0000
Subject: Re: multiline text areas and mysql doesn't work :(
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52621@lists.php.net to get a copy of this message
It should be storing them unless you are doing something to the data before inserting it into the database. Have you tried outputting the data through nl2br() ?http://www.php.net/manual/en/function.nl2br.php Ethan Schroeder ----- Original Message ----- From: "Ciaron Nixon" <ciaron@eidosnet.co.uk> To: <php-general@lists.php.net> Sent: Sunday, May 13, 2001 9:22 AM Subject: [PHP] multiline text areas and mysql doesn't work :( > I'm trying to insert the conents of a submitted textarea into a field of a > db but it seems to be stripping the control characters or not fomatting them > properly. The record updates fine but when I display it all the newlines are > gone ie the whole field appears on 1 line. > Any ideas how to get it to store the control chars? > > -Ciaron > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#52621) next »