I am doing a login query that looks something like this:
(user passes two variables, userName & password from a form):
mysql_query("SELECT userID FROM users WHERE userName = '$userName' AND password='$password'");
I am guessing this is not case sensitive. I would like it to be case sensitive (for the password at least), and would rather mysql did the work, rather then doing:
SELECT * FROM users WHERE userName = '$userName'
and then do a comparison on the passwords.
Can mysql do case-sensitive compares?