I am a current student and don't know much about where to even begin with this. :SI am working on a website for a friend and they want the visitor to be able to put in their zipcode and a list be generated with the nearest stores. Is this something that can be achieved with just PHP? Any help/coding is appreciated! I don't even know what the coding would look like for this...?? Thanks for your help!
ryanwhite17
0
Newbie Poster
Recommended Answers
Jump to PostPHP is ok. (for, basically, any job!)
If you have NO php experience, It will be painful, so I suggest you hire someone to do it.
If you have at least some PHP knowledge, check this out, it seems to be what …
Jump to PostThe way this is done, is using a database of zipcodes with geographic information attached, latitude and longitude.
Given a user's zipcode, its a matter of finding all zipcodes within a certain distance, say 10 miles, and then any store which has a location within those zipcodes.
Here …
Jump to PostYou could avoid this and use this simple trick: a user provides the zip 12345. You then lookup for only for the 123xx matches in the database (the regional zip).
Get the idea ?
All 10 Replies
MindSter
1
Junior Poster in Training
mschroeder
251
Bestower of Knowledge
Team Colleague
ryanwhite17
0
Newbie Poster
MindSter
1
Junior Poster in Training
mschroeder
251
Bestower of Knowledge
Team Colleague
benjaminFowl87
7
Junior Poster in Training
ryanwhite17
0
Newbie Poster
mschroeder
251
Bestower of Knowledge
Team Colleague
benjaminFowl87
7
Junior Poster in Training
Stefano Mtangoo
455
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.