验证码不对";
echo "";exit;
session_destroy();//清除
}
else
{
$result=mysql_query("SELECT * FROM wq_user where username='$username' and password='$password' and y=1");
$num=mysql_num_rows($result);
if($num<1)
{
$zt = "用户名或密码错误";
echo "";exit;
}
else
{
date_default_timezone_set("PRC");
$time=date("Y-m-d H:i:s", time());
$ip=ip();
mysql_query("update wq_user set lastloginip=loginip,loginip='$ip',lastlogintime=logintime,logintime='$time' where username='$username'");
$_SESSION['username'] = $username;
setcookie("name","dsms");
if($url<>"")
{
echo "";
}
else
{
echo "";
}
}
}
}
}
?>
这个php代码是有问题么?为什么我去掉可以显示网页,加入php代码在网页前面就无法连接显示错误:500。求大神指点一下是不是if语句错了。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号