laserlight wrote:Unless you are using it with say, LIKE, chances are you dont need to escape it. If you do need to escape it, you should use the backslash, i.e. \%. addslashes() and addcslashes() dont regard the % symbol as one that needs to be escaped, so you should do the string replacement with say [man]str_replace/man.
thanx 😃
all the "negative" replys made me verify my code again and i had forgot something :o
i forgot ' ' in my secure variable before sql query function
changed from
$securevalue = " . mysql_real_escape_string($securevalue) . ";
to
$securevalue = "'" . mysql_real_escape_string($securevalue) . "'";
sorry for the time you guys spent reading this post 😉 ,but thats why it's in the newbies category 😉