I'm trying to create a basic search functionality for MySQL InnoDB. I know there is Full-text search, but I just want to make an easy and simple solution for now. What I want is that when a user search for example "BMW Car" I want to find results not just like "BMW Car" but also "Car BMW" "BMW Z4 Car" and so on.. Is there an easy way to do this? How would you implement a search like this?
Right now I'm using LIKE:
SELECT title,id FROM table WHERE title LIKE '%BMW Car%'
But that will not give me results like "Car BMW" "BMW Z4 Car"..