时间:2021-07-01 10:21:17 帮助过:2人阅读
[/code]
×
会员登陆
[code=javascript]
//登陆验证
public function doLogin()
{
$username=$_GET['username'];
$password=$_GET['password'];
$user=M('member');
$where['username']=$username;
$where['password']=md5($password);
$count=$user->where($where)->count();
if($count)
{
$_SESSION['username']=$username;
echo '验证成功';
}
else
{
echo '验证失败';
}
}