Hi,
PLease, what script regpage anti-sql injection works 100% ? Thanks.
Hi,
PLease, what script regpage anti-sql injection works 100% ? Thanks.
here we go -- we can't say it works 100% but it's up to date
all credits to wizkidPHP Code:function antisql($sql) {
$sql = preg_replace(sql_regcase("(select|union|0x|cast|exec|varchar|insert into|delete from|update account|update login|update character|ugradeid|drop table|show tables)"),"",$sql);
$sql = trim($sql);
$sql = strip_tags($sql);
$sql = addslashes($sql);
return $sql;
}
Thank you Fallen
no problem..