你的查询语句有问题
$query = "select * from user where {$HTTP_POST_VARS['user_name']}='$username' and {$HTTP_POST_VARS['user_passwd']}='$password'";
双引号里要解析数组变量,必须把数组变量用花括号括起来
$query = "select * from user where {$HTTP_POST_VARS['user_name']}='$username' and {$HTTP_POST_VARS['user_passwd']}='$password'";
双引号里要解析数组变量,必须把数组变量用花括号括起来
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货