//-- namafile: db.config.php //-- namafile: maps.php Commodities Maps
Location

Select Commodity :


//-- namafile :location.php query($sql)) { $i=0; while($record = $result->fetch_object()) { echo " " ." " ." " ." " ." " ." n"; } } ?>
Location Latitude ° Longitude ° Distance
".$record->location_name." ".number_format($record->distance,2)." Km
//-- namafile : georss.php "; include "db.config.php"; $sql="SELECT a.location_name,a.lat,a.lng FROM tbl_location a JOIN rel_loc_commodity b USING(id_loc) WHERE 1 " .(isset($_GET['q'])?" AND b.id_commodity='".urldecode($_GET['q'])."'":""); if($result=$db->query($sql)) { while($record=$result->fetch_object()) { $out.=" # {$record->location_name} {$record->lat} {$record->lng} n"; } } echo $out; ?>