This is code that I originally developed for WeilMclain. If the problem is city/state searches then you need to look at get_zip() because it has to search the zips table to find a zip code for the given city and state. If that doesn't find a zip code for a given city/state it won't work.
I also have the original file as well if you need it. Feel free to contact me at dennyd@triple-d.us for more assistance