Re: Why does this work on one server...(Final comment)

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

 



If I perform stripslashes first, then the process doesn't work.

I usually raise eyebrows with this statement, but you should never (with very, very few exceptions) need to unescape anything. Ever.

Richard was pointing out that the only reason you would need to strip slashes after retrieving data from the database is if you escaped it twice before putting it in there.

If you're only escaping it once, which you seem to be claiming, then you should not have to unescape anything.

Hope that helps.

Chris

--
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