Select.....Where LOWER(users.username)='PHP FUNCTION FOR LOWER(The User Name The User Sent)' And users.password='password sent by the user';