Hey,
I’m working on a login script. The user information is stored in a database, so once they type in their information, it uses this query to verify their info:
mysql_query(“SELECT id FROM er_users WHERE username=’{$username}’ AND password=’{$password}’”);
However, the way it works now, say their username is “nick”, they could type in either Nick or nick and it would allow them to login, I don’t want that. I want it to be where if they registered as “nick” they would have to type that, exactly, enable to login. So if they typed “Nick” it wouldn’t allow them to login.
Is there anyway to make the above query only return a result if $username and $password both perfectly match (case sensitive) with the database entry?
Thanks,
Nick