Placemarks
-
$directory = opendir('./placemarks/');
-
$query = mysql_query("SELECT locationID, lat, lon, title FROM gallery_location, gallery_photo WHERE gallery_photo.photoID = gallery_location.photoID AND gallery_photo.photoID = $placemark ORDER BY locationID DESC") or die (mysql_error());
$location = @mysql_fetch_array($query);
$lat = $location["lat"];
$lon = $location["lon"];
$title = $location["title"];
?>
“>
while (false !== ($filename = readdir($directory)))
{
if ("kml" != substr($filename, -3)) continue;
$placemark = substr($filename, 0, -4)
// For each subcategory, display a random thumbnail and a description of the information.
?>
}
?>