In my Mysql DB I have a list of terms like (With First letters Capital and most of the time plurals)
Hairdressers
Restaurants
Beauty Salons
Fournitures For Restaurants
On my website I have a searchbar where the user can search for those word (my website is a kind of POI finder). But I'm having problems with my query.
SELECT * FROM TABLE WHERE word = 'userword'
1: If the user enter restaurants, it doesn't work because he put 'r' on lower case. 2: if the user enter restaurant either because because he didn't put it in plural
I have tried with SELECT * FROM TABLE WHERE word like 'userword'
This fix the problem for the Capital leters, but I have no idea how to make the query work when the user enter the word in singular. is the only solution add that word in DB as well ?
Thank you