can u help me wid sumthing .. im using addslashes to insert data but whn i m diplayin it wid stripslashes it still shows the the backslash
addslashes and then stripslashes but still showing slashes, why?
(5 posts)-
Posted 2 years ago #
-
Check the magic_quotes_gpc ....
The PHP directive magic_quotes_gpc is on by default, and it essentially runs addslashes() on all GET, POST, and COOKIE data. Do not use addslashes() on strings that have already been escaped with magic_quotes_gpc as you'll then do double escaping. The function get_magic_quotes_gpc() may come in handy for checking this.
Hi, this is AjiNIMCPosted 2 years ago # -
thnx a lot fr ur help....:)
Posted 2 years ago # -
did it help?
Posted 2 years ago # -
YAAAAAAAAA, magic_quotes was ON in server
Posted 2 years ago #