Re: Having trouble with inserting strings into Oracle8i viaphp

From: Date: Mon, 17 Jul 2000 12:54:11 +0000
Subject: Re: Having trouble with inserting strings into Oracle8i viaphp
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6910@lists.php.net to get a copy of this message
> > > Having trouble with inserting strings into Oracle8i via php. > > > If a string has an apostrophe I get errors, how do I insert a string > > > with single quotes/apostrophe into oracle via PHP? > > > > Turn on magic_quotes_sybase > > > > Then either turn on magic_quotes_gpc or call AddSlashes() manually on any > > strings before inserting them. > I don't know anything about the magic_quotes_sybase but isn't the escape > for an apostrphoe in Oracle another apostrphe? e.g. "this isn't a test" > should become "this isn''t a test" Yup, and that's what magic_quotes_sybase does. It changes the escaping ' from \' to '' -Rasmus

« previous php.general (#6910) next »