///////// Getting the data from Mysql table for first list box//////////
$quer2=mysql_query("SELECT DISTINCT make,make_id FROM make order by make");
///////////// End of query for first list box////////////
/////// for second drop down list check if make is selected else display all the models/////
if(isset($make) and strlen($make) > 0)
{
$quer=mysql_query("SELECT DISTINCT model FROM model where make_id='$make' order by model");
}
else
{
$quer=mysql_query("SELECT DISTINCT model FROM model order by model");
}
////////// end of query for second models drop down list box ///////////////////////////
echo "";
?>