Re: Special characters --> single quote

From: Date: Wed, 23 Aug 2000 00:30:08 +0000
Subject: Re: Special characters --> single quote
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13052@lists.php.net to get a copy of this message
On 22 Aug, ludovic wrote: > 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 > For sybase, there is a special magic quotes setting - magic_quotes_sybase which according to the docs "If magic_quotes_sybase is also on, a single quote is escaped with a single quote instead of a backslash if magic_quotes_gpc or magic_quotes_runtime is enabled" Perhaps this may solve your problem. Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#13052) next »