Forum Moderators: coopster
Somehow my data fetched from the DB is automatically escaped, even though the both most likely culprits have been set off a long time ago and still are set 0.
Now I am all for escaping input and output, but only if I specify the script to do so....
Now my PHP syntax highlighting function fails on stuff like
$this_pseudo= str_replace(')',"\\)",$this_pseudo);
because it strips chars from the input (like it should)
If I dont strip them, I see extra added backslashes on places they shouldnt be, they sure are not in the DB after all...
any ideas?
Are there any functions/classes between your script and what you are pulling from the database that may be adding the slashes?
echo $query;
and then paste that query here it would be really helpful. Also if you're using mysql check to see if you're using the quote() function in either the INSERT or SELECT.
Sean