Currently I got this:
$password = mysql_real_escape_string($_POST['password']);
and then I check the password with this:
$password_q = mysql_query ("SELECT password FROM ppl WHERE email='$email'");
$password_result = mysql_result ($password_q, 0);
if (!password_verify($password, $password_result)) {
$error = 'Wrong password.'; } else {
Is there any need to use mysql_real_escape_string here or should I remove it? This is the only place in the code where $password variable is used.
I should have mentioned that I'm stuck with using the older MySQL API.