I have a MySQL database of UK locations, each with latitude and longitude values. I need a PHP function that takes two locations and calculates the distance between them in miles.
I have found a few functions on Google that do this, however they are inaccurate - **it is essential that the function provides accurate results**.
The database I have can be found here:
[url removed, login to view]
(it is the [url removed, login to view] file)