i've got a problem with password verify. I'm trying to fetch an hash from my password column and then verify with the password from form. I'm not sure why it doesn't work:
$pass = mysqli_query($link, "SELECT password FROM male_users WHERE email=$email");
$hash = mysqli_fetch_assoc($pass);
if (password_verify($password, $hash)) {
echo('Hello');
} else {
echo('Email or Password not mach');
}
It turns back an error: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given but i found on stack that people succesfully uses that. What am i doing wrong? Thnx in advance! best regards
where email = '$email'mysqli_fetch_assoc()returns an array not a string.