Is OK like knashash told u to do, I just want to change something from his code:
This code:
foreach ($zipcodeStringArray as $key => $value)
{
if ($z) $zipQueryString .= "or zipcode='$value' ";
else $zipQueryString = "zipcode='$value' ";
$z++;
}
Make if like this:
$zips = '';
foreach ($zipcodeStringArray as $value) $zips = "'{value}',"; //prepare a string like this ('CO','TX','LA','MS',...,'WY',)
$zips = subsrt($zips,0,-1); //cut the last coma
after u have the $zips string (like this 'CO','TX','LA','MS',...,'WY') u can make the select like this:
SELECT * FROM Coverage
WHERE Zip_Code IN ($zips)
I hope u understand ....
P.S. In knashash example, if u got hundreds of zip codes that's going to be a long query ...