开发者

php how to display friends based on zipcode?

开发者 https://www.devze.com 2023-03-01 08:34 出处:网络
i have a database with some names and addresses, zip codes, etc i am looking for a way to display names clos开发者_Go百科e to a zipcode.

i have a database with some names and addresses, zip codes, etc

i am looking for a way to display names clos开发者_Go百科e to a zipcode.

something like based on my zip code to show the people with in my proximity

i am looking for an script idea...

i know google has something but it charges after 50.000 entries

thanks


Here is how you do it.

Download the zipcode database with latitutde/longitude here.

Do a query in mysql to get users close to x miles.

Luckily, someone has already written a library to do all this for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消