我正在尝试使用 mysql_fetch_assoc() 从我的数据库中检索我的结果,但是当我回显以下内容(纯白屏幕)时,我似乎没有得到任何结果:
$email_address = $_POST['email_address'];
$password = $_POST['password'];
if(login($email_address, $password)){
$query = mysql_query("SELECT * FROM `users` WHERE `email_address` = '$email_address' AND `password` = '$password'");
$row = mysql_fetch_assoc($query);
echo $row['email_address'];
}else{
echo "Invalid login";
}