Hi everyone.
Currently, I am using an array to achieve my mission, and it works great, but the list is getting too big.
(I have over 300 entries and adding more each week)
Here is what I have so far:
[php]
$zips = array();
$zips[]= “33702”;
$zips[]= “33617”;
$zips[]= “33618”;
$zips[]= “33707”;
$zips[]= “33708”;
$zips[]= “33709”;
foreach($zips as $zip)
{
if($stZip == $zip)
{
$zipmatch = true;
}
}
if($zipmatch){
}else {
$locDeliv = $inpOpts[‘loc_unch_unav’];
}
[/php]
And what I am trying to do is not giving the same result:
[php]
$result =mysql_query(“SELECT 1 FROM zipcodes WHERE zipcodes = ‘$stzip’”);
if ($result && mysql_num_rows($result) > 0)
{
}
else
{
$locDeliv = $inpOpts[‘loc_unch_unav’];
}
[/php]
Any suggestions to how I can make this work?
Thank you!