I'm trying to implement MD5 into the login form of my website. I have been able to use MD5 on the registration form to hash the password, its just being able to convert the login password to that stored in the database.
The code used on the register form:
$password = md5($password);
The code that doesn't work on my login form:
$sql = "SELECT username FROM custlogin WHERE username = '.$_POST[username].' AND password=md5('$_POST[password]')";
This isn't going to be a live website, it's part of an assignment.