can you please review my code? I'm stuck.$result is returning false from some reason and I cannot change user passwd in my database.
Thank you in advance
$sql ="UPDATE users". "SET password = $new_pwd "."WHERE email = $email";
Try enclosing the string vars in quotes
$sql ="UPDATE users SET password = '$new_pwd' WHERE email = '$email';";
and remove unuseful string concat