Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Anti-SQL Injection Function
SUBMITTED BY:
Guest
DATE:
Jan. 15, 2014, 9:49 p.m.
FORMAT:
Text only
SIZE:
225 Bytes
Raw
Download
Tweet
HITS:
775
Go to comments
Report
function cleanuserinput($dirty){
if (get_magic_quotes_gpc()) {
$clean = mysql_real_escape_string(stripslashes($dirty));
}else{
$clean = mysql_real_escape_string($dirty);
}
return $clean;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus