Jump to content

Search w/Zip Range


geauxtigers14

Recommended Posts

I'm still somewhat new to PHP but have become not too bad. My first post on here so I hope I can get some help. I have a website I am building that I need to have search capabilities with the ability to narrow the search to only results within a certain zip's range. I already have search capabilities, a database of U.S. zips, and functions to select only the zips within a certain range. What I need help with is tying the two actions together. I'm using two different databases for the one query. The only real idea I have come up with is possibly searching through the resulting array of the initial query to narrow it down to all the results that match within a certain range. I need any suggestions on how this is commonly done and would be the most efficient. Thanks for the help!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.