I am having some issues getting this new code implemented using a SQL Server as the DB and using odbc_connect to interface with the database.
The current script itself selects a postal code and outputs its contents if its available and a message when the person's postal code is not available in the database.
Now my dilemma is this:
There is another table with the following rows: Latitude, Longitude, Region, that was previously installed. What I would like to be able to do is that when a user enters their postal code, instead of showing an error message for when their zip isnt available in the database, to actually show another zip code that is within range ( a postal code search that outputs results with in range.) .
Please bare in mind that I do not wish to purchase any scripts but instead would like to
learn how to do this. Any help would be appreciated.
What is being used at the moment for the normal search: