Ok I downloaded some date. The form is lilke: Zipcode, Latitude, logitude, city, state, abbr. I' not sure what goes where with your query:
SELECT zipponame, zipclass, zipcode, ziplong, ziplat, stateabrev, statename, countyname, zip2000.zipcounty, geodist(40.653037, -75.726896, ziplat, ziplong) AS distance, zippop, ziphousing, zipland, zipwater FROM zip2000 INNER JOIN state ON state.fipsstate = zip2000.zipstate INNER JOIN county ON county.fipsstate = zip2000.zipstate and county.fipscounty = zip2000.zipcounty WHERE geodist(40.653037, -75.726896, ziplat, ziplong) <= 5 ORDER BY distance
Did you do a query before that to pick the actual latitude and longitude of the zip code that was entered? Would you be able to rewrite the query for me to just use the fields that I had.
By the way a real cheap zip code database that is up to date is: http://www.teamredline.com/zc/ it is only $5.
Thanks for the continued help.