Possible Duplicate:
MySQL latitude and Longitude table setup
I know this question has probably been asked many times, I’ve researched a lot and I need help with specific thing.
Lets say I have a form and user enters longitude and latitude, and I have a database which has table containing longitudes and latitudes, how would I search for a point or points in that table that are within 15 miles of radius?
You can use the formula that calculates distances between two points.
For example:
You can also do something like: