Re: Special characters --> single quote

From: Date: Tue, 22 Aug 2000 10:56:28 +0000
Subject: Re: Special characters --> single quote
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-12919@lists.php.net to get a copy of this message
This is the query $query = "update toto set OBSERVATION='$OBSERVATION' where id =$number"; and the data field OBSERVATION is declared in my Sybase Database in a long varchar. The configuration of my php3.ini is ;;;;;;;;;;;;;;;;; ; Data Handling ; ;;;;;;;;;;;;;;;;; magic_quotes_gpc = Off ; magic quotes for incoming GET/POST/Cookie data Regards, Ludovic > Please post a few of the lines of code, and tell us the data type of the field you're > trying to > insert the data into > > jason > > > Thanks for your response James... > > > > But I have tried this with no success ... > > In fact, my sql query is cut by this single quote. > > > > Regards > > > > Ludovic. > > > > James Moore a écrit : > > > > > With the string your inserting do the following > > > > > > $string = addslashes($string); > > -- > 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 (#12919) next »