I want to check if value is already exists in database with php. But this value can be as for example "John" or "JOHN" or "JOhn" or ... e.t.c
how to check for all conditions?
If your database collation is set to case insensitive you can simply use `WHERE username = 'John'` Read More
Edited by pritaeas: Minor code fix