Re: MDB2 autoExecute escaping data
| From: | Justin Patrin | Date: | Sun, 07 Oct 2007 17:41:00 +0000 |
| Subject: | Re: MDB2 autoExecute escaping data | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28066@lists.php.net to get a copy of this message | ||
On 10/7/07, brian <brian@zijn-digital.com> wrote:
> Mark Steudel wrote:
> > Hi All, I thought I've asked this before but couldn't find it in the
> > archives, and couldn't find it in the pear docs.
> >
> > I having problems with extra slashes showing up in my data and was wondering
> > if mdb2 by default does it's own escape strings when using autoExecute?
> >
>
> I don't think so. Have you checked whether or not magic quotes is enabled?
>
> if (get_magic_quotes_gpc()) ...
>
Any of the calls which take placeholders will quote your data with the
correct functions. If you are writing your own SQL and inserting data
then use $db->quote().
--
Justin Patrin