PHP 防止 SQL 注入的函数

2015-08-13 0 571
PHP 防止 SQL 注入的函数
function cleanuserinput($dirty){
    if (get_magic_quotes_gpc()) {
        $clean = mysql_real_escape_string(stripslashes($dirty));     
    }else{
        $clean = mysql_real_escape_string($dirty);  
    } 
    return $clean;
}

遇见资源网 php PHP 防止 SQL 注入的函数 http://www.ox520.com/7953.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务