Re: Form's and oracle

From: Date: Sat, 03 Feb 2001 17:26:17 +0000
Subject: Re: Form's and oracle
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37969@lists.php.net to get a copy of this message
Hi again, Thanx, there is an option magic_quotes_sybase in the php.ini... Sybase uses the same escape as oracle. If you set this to On the qoutes are handled correctly... Thanx, Christoph > Hi, > > I think it's one of the "magic_quotes" features that does this. One > possibility would be to turn it off, and be sure to escape your quotes by > transforming them into double-quotes before sending them to Oracle. > > "Christoph Kempen" <me@christophkempen.com> a écrit dans le message news: > B6A1EF1F.1B01%me@christophkempen.com... > Hi, > > I used to work with PHP/mysql.. But since a few weeks we have an oracle > server :-) > > 1 problem occured with the migration... > > If some text is passed through a html-form all the qoutes have a slash in > fromt of them... This is not a problem with mysql, since mysql uses that > slash for inserting a qoute in the table. But in oracle this is not a slash, > but a qoute... > > For example: > > I¹ts a test php: I\¹ts a test > > But oracle wants: I¹¹ts a test > > Is there a easy way for converting this. Otherwise I have to write a > function that filters them out :-( > > Thanx, > > Christoph Kempen > > >

« previous php.general (#37969) next »