I have been learning php over the past year and have decided to put my knowledge to the test by volunteering to build a web site for a church. They need to be able to calculate shipping costs by zone. I have entered all the zip prefixes into 8 arrays, 1 array for each zone. A LOT of typing.
Anyway, I was thinking maybe I could use a case layout to determine which zone is being queried. The problem is, I have no clue where to start. Here is a small amount of what I have.
then I plan to test for the zone chosen by this:
//zone 2 zips
$zone2 = array( '070', '071', '072','073','074','075','076','078','079','100','101','102','103','196');
And then having the prices for shipping associated with the zone be displayed for the customer.
// They are in Zone 2
If someone could point me in the right direction I would really appreciate it.