Zip code radius database needed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
minos_mks
Forum Commoner
Posts: 69
Joined: Thu Feb 04, 2010 1:58 am

Zip code radius database needed

Post by minos_mks »

i am doing a search function and one of the criteria of the search is the zip code and the user suppose to choose how many radius for the zip code he entered ( something like www.cars.com) , i think i need a zip code database and have one table contain zip code,the other zip code, the distance between both of them , if somebody did that before or he have this table please help me on that , thanx a lot
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Zip code radius database needed

Post by Jade »

The distance between zip codes is a calculation, not something that's generally stored in a table. All you would need to store is the zip codes: http://stackoverflow.com/questions/4079 ... des-in-php
princeofvegas
Forum Newbie
Posts: 11
Joined: Wed Jun 30, 2010 1:21 am

Re: Zip code radius database needed

Post by princeofvegas »

Take a look at this. I just used it for a school project that I am putting together and it works GREAT
http://www.micahcarrick.com/04-19-2005/ ... ation.html
minos_mks
Forum Commoner
Posts: 69
Joined: Thu Feb 04, 2010 1:58 am

Re: Zip code radius database needed

Post by minos_mks »

thank you so much , i will tray both of them , thanx
Post Reply