ummm. you lost me.
I have this data in my mysql table
zip city state latitude longitude timezone dst
17101 Harrisburg PA 40.261839 -76.882790 -5 1
now the users enter the following informaiton in a form field.
Zipe code: 17110 <----the area they want to search.
Miles: 25 <--- the amout of miles around the zip code they want to search.
my script then looks to the data base for zip code 17110 and gets its latitude and longitude.
i then need to do some kind of match forumla to figure out the difference in miles in both latitude and longitude. The rest will be kind of simple (the query to go back to the database and do a => and <= to find all citys within that range).
What i need help with is my forumla.
Thanks.