DEV Community

Discussion on: I need help!

Collapse
 
martyhimmel profile image
Martin Himmel

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.

Collapse
 
venatusdev profile image
VenatusDev

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