RE: [PEAR] MDB2 autoExecute escaping data
| From: | Mark Steudel | Date: | Wed, 10 Oct 2007 09:48:47 +0000 |
| Subject: | RE: [PEAR] MDB2 autoExecute escaping data | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28079@lists.php.net to get a copy of this message | ||
Thanks again, for the help was able to get rid of extra slashes showing up.
Justin I removed the conversion to htmlentities, I originally put it in
cause I wasn't sure why the extra slashes were showing up so I was just
trying things. Anyway thnx.
MS
-----Original Message-----
From: Justin Patrin [mailto:papercrane@gmail.com]
Sent: Sunday, October 07, 2007 7:41 PM
To: brian
Cc: pear-general@lists.php.net
Subject: Re: [PEAR] MDB2 autoExecute escaping data
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
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php