Features:
1 Calculating distance between two points
2 Searching of all Zip codes in current radius
ziplocator.class.php - main class
phpziplocator.sql - table dump
dbmysql.class.php - class for working with MySQL database
Example of using:
<?php
require_once "dbmysql.class.php";
require_once "ziplocator.class.php";
$zipLoc = new ZipLocator();
if ($zipLoc->checkZip($data["distance_zip"])) {
$zips = $zipLoc->getInRadius($params["s_zipcode"], $params["s_distance"]);
}
?>




