How does one check to see if a user has typed in the right password to log in?
This is what (out of a bunch of combinations...) I am doing:
$l
some points:
what i usually do is something like:
$q = preparestatement ("SELECT id FROM customer WHERE login=? AND password=?");
bindvalue ($q, $_POST['login']);
bindvalue ($q, md5($_POST['password']));
$id = execprepared ($q);
if($id) {
echo "You did it.";
} else {
echo "Wrong.";
}