Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $res = mysql_query("SELECT *, (((ACOS(SIN(".$latitude." * PI() / 180) * SIN(latitude *
  2. PI() / 180) + COS(".$latitude." * PI() / 180) * COS(latitude * PI() / 180) *
  3. COS((".$longitude." – longitude) * PI() / 180))* 180 / PI()) * 60 * 1.1515)*1.609344)
  4. AS distance") or die(mysql_error());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement