prepare("select * from users where phone=? and password=?"); $statement->execute([$phone,$pass]); $res=$statement->fetch(PDO::FETCH_ASSOC); if(!$res){ exit(json_encode(['code'=>0,"msg"=>"账号或密码错误"])); } $_SESSION['admin_id']=$res['id']; echo json_encode(['code'=>1,"msg"=>"登陆成功"]); exit(); } ?> 话费充值平台

话费充值平台

登录

还没有账号?点击注册