Re: mysql_fetch_* and stripslashes
| From: | Aaron Dalton | Date: | Wed, 26 Mar 2003 11:58:58 +0000 |
| Subject: | Re: mysql_fetch_* and stripslashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141077@lists.php.net to get a copy of this message | ||
*blushes deeply*
It turns out my old php3.ini was still being loaded which had magic_quotes
turned ON! Turning magic_quotes off of course fixed the problem. My
thanks for your patience.
Cheers!
On Wed, 26 Mar 2003, Tom Rogers wrote:
> Hi,
>
> Wednesday, March 26, 2003, 9:10:26 PM, you wrote:
> AD> Why is it that PHP does not automatically unescape data retrieved from a
> AD> mySQL query? It seems to me that this should be the default behaviour as
> AD> the bulk of what PHP web scripts do is display said data. I'm just
> AD> wondering if I'm missing some command or optional argument to make this
> AD> happen. As it is, I had to write an array_stripslashes routine and run
> AD> every single db query I do through it. Just seems odd to me.
>
> AD> Cheers!
>
> AD> --
> AD> Aaron Dalton
> AD> aaron@finch.st
> AD> PGPKeyID# 0x65AB5571
>
>
> Sounds like your doing addslashes twice before storing the data.
> or magic_quotes_runtime is set on in your php.ini
>
>
--
Aaron Dalton
aaron@finch.st
PGPKeyID# 0x65AB5571