View Single Post
Old 01-14-2013, 04:56 PM   PM User | #6
Arcticwarrio
Regular Coder

 
Arcticwarrio's Avatar
 
Join Date: May 2012
Location: UK
Posts: 597
Thanks: 15
Thanked 67 Times in 67 Posts
Arcticwarrio is on a distinguished road
a 2nd WHERE in your query, well its HAVING

something like

PHP Code:
$result mysql_query("SELECT * FROM vehicles WHERE year='$drop_var3' HAVING model='$drop_var2'"
__________________
There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Arcticwarrio is offline   Reply With Quote