hello guys i am trying to do something wierd in my query
here is my query
SELECT * FROM products INNER JOIN smartdevices ON products.id = smartdevices.productId WHERE products.clearName LIKE :keyword1 OR products.clearName LIKE :keyword2 OR products.clearName LIKE :keyword3
when the user enter the search phrase
my php code will split the phrase to 3 equal parts (keyword1 , keyword2 , keyword3)
i want my result to include all smart devices that contains all of these keywords together in its name
but if one of these keywords was missspelled (let us say keyword1 for example)
then i want my result to include all smart devices that contains keyword2 and keyword3 together in its name
the query i posted above will not do that so please help
thanks in advance for any help you may provide :D