Zipcode Dealer Locater
I am trying to set up a dealer locater on our site. My understanding is this is all math but I am confused. I have db1 with all the zipcode information for the US in it, with the corresponding lat/long. DB2 will have all information of my dealers in it and their location based on lat/long. I do not understand how to take in a user supplied mileage number (5 miles, 10 miles, 25 miles, etc) and zipcode, query db1 to get the appropriate ranges that I need to query in DB2. Please help, I have looked online and I am very confused.