I have written an ajax function to check if a value exists inside the database.
For example consider two strings "Book" and "book". In my current situation "Book" is there inside the Database and if I search using the query below
Select * from Cat where name='book'
OR
Select * from Cat where name like 'book'
It returns an empty result set since the 'b' is in lowercase. My collation is utf8_bin. What will be the query to evaluate in such a way that it will be the same whether it is upper case or lower case.