$sql = "select * from adminuser where name='".$_POST['name']."' and pass='".$_POST['password']."'";
$result = mysql_query($sql);
$rows = mysql_num_rows($result);
if($rows > 0){
echo '登录成功';
}else{
echo '用户名或密码错误,请重新输入;
}
执行后提示$rows = mysql_num_rows($result);错误
请大虾帮忙,
数据库已经连上了
出现 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given
提示
也就是$rows = mysql_num_rows($result);
这行出错
请大虾们帮忙啊,先谢过了