PDA

View Full Version : Zip code locator issues in php 2011



Vuhelper
09-26-2011, 06:18 PM
// Go through and check all stores
while ($row = mysql_fetch_assoc ($result)) {

// Separate closest stores
$distance = Dist ($row['lat'], $row['lon'], $zip['lat'], $zip['lon']);

$preSpecialties = $row['specialties'];
$preDoor=explode (';',$preSpecialties);
$i=count($preDoor);
for($n=0;$n<$i; $n++){



// Check if store is in radius
if ($distance <= $r && $p == ($preDoor[1]) or ($preDoor[2]) ) {

$stores[] = array (
'name' => $row['name'],
'address' => $row['address'],
'state' => $row['state'],
'town' => $row['town'],
'postal' => $row['postal'],
'phone' => $row['phone'],
'hours' => $row['hours'],
'specialties' => $row['specialties']
);

}

}

}

} else {
$Errors = ($Errors) ? $Errors : '<p>Errors were found please try again!</p>';
}

asimqayyum0
07-26-2014, 05:10 AM
good good.............................

sadanturk
08-02-2014, 09:49 AM
Dear Admin, AOA, hope you are fine in beautiful city. I have started learning Php.
So, my first choice , as always : vuhelp
I hope , I will be able to master it in 15 quick days.
Regards