zypher11 wrote:n your query instead of using UPPER(username) just type USERNAME, if that's in fact the name of the column.
Erm, the UPPER() function has nothing to do with the column name, rather its value... :p
zypher11 wrote:Use: $password = strtoupper($_POST['password']); instead of poping it to upper in the sql statement.
The OP never converts the password to upper case in his original code (nor should he, since that can very likely reduce the complexity of the password).
Regardless, the real solution to the whole uppercase issue isn't converting anything to uppercase. Instead, iM0d., you should be using a case-insensitive collation (either on this column or even the entire table), e.g. any collation that ends in "_ci". Using such a collation means that there is no need to convert two strings to the same case in order for them to be equal, e.g. "JohnDoe" will be considered equal to "johndoe".