I'm using the following code to query a MySQL database:
$query = "SELECT * FROM cars
WHERE model LIKE '%".$search."%' ORDER BY id";
but I don't want to just search the field "model" I want to search any of the columns in the table called "cars".
I've tried this:
$query = "SELECT FROM cars
WHERE LIKE '%".$search."%' ORDER BY id";
but that doesn't work. Can someone help me with the right code I am looking for?
Thanks very much