Hi guys,
I’m having problems with PHP addslashes() function. Its a function that is meant to protect database from injections by adding slashes. In PHP manual;
http://no.php.net/manual/en/function.addslashes.php
It says: “This would only be to get the data into the database, the extra \ will not be inserted.”
For some reason this is not what happens in my case, I get 1 extra slash which then goes to the database… Why? Should I use stripslashes() function to get rid of them? I mean… Its not supposed to be this way…