I have a classifieds website, where users can search for items. The search should be in all fields with the name 'description' and 'headline'.
I am currently using 'like' syntax (SELECT * FROM db WHERE description LIKE '%string%' OR headline LIKE '%string%')
Problem is, if I have records with headlines like BMW it is enough to just type 'w' in the search field and they would be fetched.
I need to match entire words in the search string only.
If you need more input, I will update the Q...