View Single Post
  #3  
Old 7th March 2013, 18:38
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Thanks but how I can to repair?
This is the code >

PHP Code:
function unsafeChar($var)
{
    return 
str_replace(array("&gt;""&lt;""&quot;""&amp;"), array(">""<""\"""&"), $var);
}
function 
safeChar($var)
{
    return 
htmlspecialchars(unsafeChar($var));
}
function 
sqlwildcardesc($x) {
    return 
str_replace(array("%","_"), array("\\%","\\_"), mysql_real_escape_string($x)); 

Last edited by Krypto; 8th March 2013 at 18:01. Reason: Stop Quoting the post directly above yours, USE the Post Reply NOT Quote
Reply With Quote