Separate your words in a space, and then create a little SQL for each term, like this:
car_make like '%x%' or car_model like '%x%'
Then attach all those with or to get the WHERE clause. So, for "Shelby Ford" you get SQL as follows:
select stuff from cars where car_make like '%Shelby%' or car_model like '%Shelby%' or car_make like '%Ford%' or car_model like '%Ford%'
If you need something more complex, explore the possibilities of MySQL full-text search .
source share