Password case sensitivity
Posted: Sat Nov 09, 2002 10:14 am
Helou!
This MySQL query:...returns a row even if passwords are case inCoRrEcT.
I know PHP strings are case sensitive, but:
Is there a way to alter the query above to only return a row if the passwords match case sensitively?
In this case, passwords are not supposed to be encrypted. Don't ask why...
This MySQL query:
Code: Select all
SELECT * FROM tablename WHERE username='$UserName' AND password = '$PassWord'I know PHP strings are case sensitive, but:
Is there a way to alter the query above to only return a row if the passwords match case sensitively?
In this case, passwords are not supposed to be encrypted. Don't ask why...