Re: Special characters --> single quote

From: Date: Tue, 22 Aug 2000 14:29:35 +0000
Subject: Re: Special characters --> single quote
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-12950@lists.php.net to get a copy of this message
In fact, Jason , I think it is the only way for me. I will have double quote in my database instead of single quote. It is quite disturbing but have not really the choice. Thank you Jason. With Regards. Ludovic > > > then how about replacing all occurances of a single quote inside $OBSERVATION, with two single > quotes. This will leave the data in the OBESEVATION field free of backslashes for your Delphi > application. > > $query = "UPDATE toto SET OBSERVATION = '".str_replace("'", > "''", $OBSERVATION)."' WHERE id = > $number"; > > jason > > -- > 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 (#12950) next »