I\'m just looking for suggestions on the best way to do this...
I need to create a search function that searches for \"users\" within a 50 mile radius of a zip code
http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html
I found this very awesome.
"query the zip codes table for all the zip codes that fall within the radius then query the users table for all the users with the results(zip codes)"
I found this is the best way to do it unless you need to put the users on a google map. If you're just listing the users in the mileage range it should be pretty easy to query the database (using the class) for a list of zips then select all users in those zipcodes.
Select * from Users where zip_code IN (19125,19081,19107.........);
That should do it.