Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2000121

[PHP-DB] Can't get rid of newlines From: Louis Aslett (laslett <email protected>)
Date: 12/06/00

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>