Hey, well basically I'm sanatising my inputs by using addslashes and mysql_real_escape_string. This is adding a lot of slashes, like ////... addslashes does just the same job as mysql_real_escape_string, so why do I need mysql_real_escape_string?
I'm then using stripslashes to remove the //'s on output, so everything looks nice.
If I'm using addslashes and mysql_real_escape_string, and then stripslashes on output, there are still some slashes.
So can I only use addslashes on input to sanatise the inputs?
Tom.
EDIT: Just been reading up, addslashes isn't totally secure by itself, so how about just using mysql_real_escape_string?





Reply With Quote

