문제

I have a mysql table with location names with UTM co-ordinantes for each entry, i.e.

Name X Y House 1 387000 406100 House 2 394500 805300

I need a mysql query so that when a query where x and y co-ordinates are entered, it lists the results in order of nearest distance to the entry;

I am new so sorry if there is any vagueness. Answers much appreciated.

PHP Language please

도움이 되었습니까?

해결책

I am not able to comments on your question

This question exactly answers your problem. And there is a link to a PHP example as well

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top