Create a form that allows for all the possibilities of the search (via a drop down or a radio button). Submit that form with the details of the car and the search requested to the server, build the sql statement from the elements and query the db.
Build it into functions, one for the form, one for the query (foirm validation), and one for the results...
if (!$_POST['submit']){
//no submit button pressed so show the form
show_form();
}else{
//call the validation routine
validate();
}
function show_form()
{
//php and html code to show the form
}
function validate()
{
//code to get the form data
//validate the form data
//call the qeury function
run_query($sql);
}
function run_query($sql)
{
//run query and show results
}
hth