I have a hotspots table
id name date 1 foo 2011-06-15 15:10:34 2 bar 2011-07-02 16:45:18
And the locations table
hotspotid zipcode latitude longitude 1 90001 xxxxx xxxxx 2 45802 xxxxx xxxxx
How can I list hotspots near a certain width and longitude with miles limit using an SQL query?
PS I would like a clean SQL solution, but php is ok if necessary.
thanks
source share