I want to get the contents from a row in the database and compare the lowercase version of it to a lowercase version of a user imput to check if it exists in the database:
"SELECT `id` FROM `user_accounts` WHERE `username` = '".strtolower($username)."'"
How can i get username to be lowercase from mysql?
If you really want case to not matter then you should set the collation of the column to be case-insensitive.