Re: Can't get rid of newlines

From: Date: Thu, 07 Dec 2000 18:46:11 +0000
Subject: Re: Can't get rid of newlines
References: 1 2  Groups: php.db php.general 
Request: Send a blank email to php-db+get-5085@lists.php.net to get a copy of this message
On Wednesday 06 December 2000 11:42, Louis Aslett wrote: > My appologies, that e-mail should have gone: > > 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! I had a similar problem with text been inserted to an informix database. The new lines where not really new lines. They were created with ms-word typing enter with the shift key pressed. If I find out how to get rid of them I will contact you. saludos... :-) -- "And I'm happy, because you make me feel good, about me." - Melvin Udall ----------------------------------------------------------------- Martín Marqués email: martin@math.unl.edu.ar Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------

« previous php.db (#5085) next »