php-db | 2000121
Date: 12/06/00
- Next message: Martin A. Marques: "[PHP-DB] Re: [PHP] Can't get rid of newlines"
- Previous message: Louis Aslett: "[PHP-DB] Can't get rid of newlines"
- Next in thread: Martin A. Marques: "[PHP-DB] Re: [PHP] Can't get rid of newlines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm trying to a some data from a <textarea> form element to an mSQL
database. However, mSQL coughs shortly after the first newline.
So, I did nl2br() to put all the newlines to <br>'s and then tried the
following:
$description=str_replace("\n"," ",$description);
to get rid of the newlines. BUT! this string replace did absolutely
nothing and the newlines are still in there!
WHY?
Thanks
Louis
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Martin A. Marques: "[PHP-DB] Re: [PHP] Can't get rid of newlines"
- Previous message: Louis Aslett: "[PHP-DB] Can't get rid of newlines"
- Next in thread: Martin A. Marques: "[PHP-DB] Re: [PHP] Can't get rid of newlines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

