时间:2021-07-01 10:21:17 帮助过:3人阅读
$account=$_POST["account"];浏览器 php mysql 分享到:
$password=$_POST["password"];
$res=mysql_query("select * from z_register where z_account='".$account."' and z_password='".$password."'");
print_r($res);
if($result=mysql_fetch_array($res)){
mysql_query("update z_register set z_login_count = z_login_count+1 where z_account='".$account."'");
$_SESSION['account']=$account;
$_SESSION['username']=$result['z_name'].$result['z_title'];
//$_SESSION['login_count']=$result['z_login_count'];
refresh_page("./other/list.php");
}else{
exit('登录失败!点击此处 返回 重试
');
}