登陆报错fetchOne
$sql="select * from imooc_admin where username='{$username}' and password='{$password}'";
$row=checkAdmin($sql); //admin.inc.php里面
function checkAdmin($sql){
return fetchOne($sql);
}
include.php最后返回了:connect(); //调用mysql.func.php里面的连接
$sql="select * from imooc_admin where username='{$username}' and password='{$password}'";
$row=checkAdmin($sql); //admin.inc.php里面
function checkAdmin($sql){
return fetchOne($sql);
}
include.php最后返回了:connect(); //调用mysql.func.php里面的连接
2017-12-13
举报