In my web application I'm using php and mysql. I want to create sql query to search function. There are many search fields. Sometimes user select only one field and some times two and sometimes many. How can I write that kind of query. This is my query.Other options are make, color,model,pri ce etc..
Code:
SELECT * FROM vehicles WHERE vehicleMake='$make' AND vehiclemodel='$model
Comment