Added PHP code for calculating distances from a fixed point in location array to any value saved in the DB