Does anyone have any idea how to do something like this
I have an application where a user can search for people that live near them with a drop down box
<select>
<option value="1">whithin 10 miles</option>
<option value="2">whithin 10-50 miles</option>
<option value="3">whithin 50-100 miles</option>
<option value="4">whithin 100-200 miles</option>
<option value="5">whithin 200-500 miles</option>
<option value="0">anywhere</option>
I want to do this by zip code approximation
For example I can choose all the people that live within 100-200 miles from me; so my script should calculate all the people in the database whos zip codes are within 100-200 miles of the user's zipcode who is executing the query
An example whould be like on match.com
Thanks