Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $res = mysql_query("SELECT *, (((ACOS(SIN(".$latitude." * PI() / 180) * SIN(latitude *
- PI() / 180) + COS(".$latitude." * PI() / 180) * COS(latitude * PI() / 180) *
- COS((".$longitude." – longitude) * PI() / 180))* 180 / PI()) * 60 * 1.1515)*1.609344)
- AS distance") or die(mysql_error());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement