Re: Magic Quotes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Liz Kim wrote:
> I've got all three Magic Quote directives turned off...
> When I use sql query to grab any string from a database, it
> still spits out the \ in front of the special characters..

Turning off magic quotes doesn't repair the data already in your
database. It sounds like data has previously been inserted into the
database after having been escaped twice. You can examine a few records
and check whether this is the case.

If this is what has happened, I suggest writing a simple utility to
repair all of the data in the database (running stripslashes() should do
the trick), then you won't have to worry about it again.

Hope that helps.

Chris

-- 
Chris Shiflett
http://shiflett.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux