so your trying to do a zip code radius search.
search google for
php post code radius search
or
php postcode radius search
heer is one result i found that should be helpful:
http://stackoverflow.com/questions/2410529/php-mysql-zip-code-proximity-search