Re: Having trouble with inserting strings into Oracle8i viaphp
| From: | Graeme Merrall | Date: | Mon, 17 Jul 2000 07:22:44 +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-6884@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
>
> > 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"
I've been doing some Oracle stuff here and that's what I've had to do.
Cheers,
Graeme