Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select
- *, (6371 * acos(cos(radians(".$_POST['latLocation'].")) * cos(radians(a.intLat)) * cos(radians(a.intLng) - radians(".$_POST['lngLocation'].")) + sin(radians(".$_POST['latLocation'].")) * sin(radians(a.intLat)))) as distance
- from
- `table`
Add Comment
Please, Sign In to add comment