$sql = "select `uid`, `username`, `allow_1`, `allow_2`, `allow_3` from `loger` where `username` ='?' and `password` = '?'";
$stmt = $pdo -> prepare($sql);
$stmt -> execute(array($_POST['username'], $_POST['password']));
}catch(PDOException $e) {
echo "ERROR: ".$e->getMessage();
}
if($stmt->rowCount() > 0) {
echo "登录成功!<br>";
}else {
echo "登录失败!<br>";
}
慕神8447489