Fatal error: Call to undefined function mysql_num_row() in E:\phpStudy\WWW30\daima\login_a.php on line 33
if(mysql_num_row($result)==0){
说是这一句,下面是完整代码
<?php
star);
$nama pengguna(");$namapengguna ];
$kata laluan=$_POST["kata laluan"];
include("config.php");
if(kosong($username)){
echo ("<script type='text/javascript' > alert('用户名不能是空的');history.go(-1);</script>");
}
if(kosong($password)){
echo ("< ;script type='text/javascript'> alert('密码不能是空的');history.go(-1);</script>");
}
//e $nama pengguna.$kata laluan;
$db=mysql_connect("127.0.0.1","root","root");
mysql_select_db("prestasi",$db);
S mysql SET_query '("SET_NAME GB2312'");
$_POST["username"];
$sql="select * from admin where admin_name='$username' and admin_pw='$password'";
$result=mysql_query( $sql);
//$number = mysql_fetch_row($result);
//$result=mysql_fetch_array(mysql_query($sql));
if(mysql_num_row(){result=0 ("<script type='text/javascript'> alert('用户名或密码不正确!');history.go(-1);</script>");
mysql_close();
keluar;
}lain{
$_SESSION["admin"]="lee";
echo "<script>location.href='Admin.html';</script>";
}
?>
print_r(get_extension_funcs('mysqli'));
ialah mysqli_num_rows(), nama fungsinya salah~