Re: Oracle and apostrophes''
| From: | Simon Edwards | Date: | Tue, 26 Sep 2000 04:17:01 +0000 |
| Subject: | Re: Oracle and apostrophes'' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17514@lists.php.net to get a copy of this message | ||
Steve Farmer wrote:
> I have a problem with inserting fields into Oracle8i when the field
> contains an apostrophe (') php seems to escape it automatically i.e.
> My questions are....
>
> 1) is there a parameter or a function which will deal with this or do
> i need to "roll my own" function to deal with this ?
>
> 2) Is there a way to stop php escaping the ' with a \ ?
Go to www.php.net and lookup addslashes() stripslashes() and the
configuration docs where it talks about magic quotes. Thankfully it is
possible to turn off that behaviour.
--
Simon Edwards
Animated Design, Melbourne
http://www.animated.net.au/ Ph: (03) 98850990