Quick PHP Project, Make a few $$

Discussion in 'Programming' started by PPCJohn, Jan 23, 2009.

  1. #1
    I have a database that consists of zipcode, city, state and population. I need the code to pull data from city + state, and state to display population; I can currently pull zipcode data, but need help with coding past that.

    Right now the script runs and pulls back the zipcode that you enter through a URL (mysite.com/page.php&zipcode=90210) and displays the population for that zipcode, as well as the city and state name.

    However, some citys have multiple zipcodes and the population is set at the zipcode level, I can't figure out how to do the proper coding and math to sum up all the populations, PLUS some cities exist in multiple states, i.e. Springfield.

    So I need something set up that when I use this URL mysite.com/page.php&city=Beverly Hills&st=CA it will sum up all the populations for the zipcodes associated with Beverly Hills in the state California (CA).

    As well, I need it done for the state level so when I go to mysite.com/page.php&state=CA it will sum up the population for every zipcode in CA.

    Im guessing the best idea would be to have a caching system in place, any suggestions to doing that?

    PM me if your interested
     
    PPCJohn, Jan 23, 2009 IP
  2. Gonzo4u

    Gonzo4u Well-Known Member

    Messages:
    410
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Hello iwp_inc,

    PM me your detail requirements with offer.

    Regards,
    Gonzo
     
    Gonzo4u, Jan 25, 2009 IP
  3. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Please post this in BST section. I am interested in this.
     
    harrisunderwork, Jan 25, 2009 IP
  4. manjifera

    manjifera Well-Known Member

    Messages:
    232
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    118
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Job Taken! and Done!
     
    manjifera, Jan 27, 2009 IP