Re: mysql_fetch_* and stripslashes
| From: | Tom Rogers | Date: | Wed, 26 Mar 2003 11:26:43 +0000 |
| Subject: | Re: mysql_fetch_* and stripslashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141076@lists.php.net to get a copy of this message | ||
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
--
regards,
Tom