Viewlocation.php Page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>North American Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="viewsinglelocation.php" method="GET">
<img src="namap.gif" usemap="#namap" alt="" style="border-style:none" />
<map id="namap" name="namap">
<area shape="poly" alt="" coords="143,136,126,179,132,202,136,220,90,208,81,186,85,157,96,144,88,104" href="viewsinglelocation.php?id=1" title="BritishColumbia" />
<area shape="poly" alt="" coords="156,229,137,224,137,208,127,181,145,137,179,148" href="viewsinglelocation.php?id=2" title="Alberta" />
<area shape="default" nohref="nohref" alt="" />
</map>
</form>
</body>
</html>
viewsinglelocation.php Page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<?
include('mapconnection.inc');
$id= $_GET('id');
//$id=2
$sql = "SELECT tblCanada.locationID, tblCanada.Province, tblCanada.Description FROM tblCanada WHERE tblCanada.locationID=$id ORDER BY Province";
$rs = $conn->Execute($sql);
?>
<html>
<head>
<title>ViewRecords</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<table>
<tr align="left">
<th width="37">ID</th>
<th width="150">Province</th>
<th width="500">Description</th>
</tr>
<? // while (!$rs->EOF): ?>
<tr>
<td><?= $rs->Fields['locationID']->Value ?></td>
<td><?= $rs->Fields['Province']->Value ?></td>
<td><?= $rs->Fields['Description']->Value ?></td>
</tr>
<? // $rs->MoveNext() ?>
<? //endwhile ?>
</table>
<?
$rs->Close();
$conn->Close();
?>
</body>
</html>