Could not connect to database.

"); mysql_select_db($dbname) or die("

Could not select the database - $dbname

"); // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.0 header("Pragma: no-cache"); //XML Header header("content-type:text/xml"); $countries = array( array("Poland", "52.1874047455997", "19.072265625"), array("East Germany", "52.517474393230245", "13.41156005859375"), array("Czechoslovakia", "49.210420445650286", "17.490234375"), array("Hungary", "47.45780853075031", "19.05029296875"), array("romania", "45.98169518512228", "25.07080078125"), array("Yugoslavia", "44.26093725039923", "18.96240234375"), array("Bulgaria", "42.601619944327965", "25.24658203125"), array("Soviet Union", "55.70235509327093", "37.79296875") ); echo " "; for($g=0; $g'; } } echo ' '; function description($id,$text){ $description = wordwrap(htmlentities(truncate($text,200), ENT_QUOTES),30); $fulltext = $description."\n<a target='_blank' href='http://chnm.gmu.edu/1989/maps/results.php?id=$id'>Show item</a>"; return $fulltext; } function truncate($text,$numb) { // source: www.kigoobe.com, please keep this if you are using the function //$text = html_entity_decode($text, ENT_QUOTES); if (strlen($text) > $numb) { $text = substr($text, 0, $numb); $text = substr($text,0,strrpos($text," ")); $etc = " ..."; $text = $text.$etc; } //$text = htmlentities($text, ENT_QUOTES); return $text; } ?>