re: I need help! VIEW POST

FULL DISCUSSION
 

The WHERE email == '$email' part of the query should be WHERE email = '$email' - SQL uses single equals sign as a comparison operator.

As for the results, try using mysqli_fetch_assoc.

Also, for passwords, don't use sha1. Use the password_hash and password_verify functions instead, as they're much more secure.

 

Thank you Martin for your reply, also thanks for the notice on using password_hash instead. I will try this now!

code of conduct - report abuse