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

From: Date: Fri, 24 Mar 2006 21:51:33 +0000
Subject: Re: Why does this work on one server...(Final comment)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-232565@lists.php.net to get a copy of this message
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

« previous php.general (#232565) next »