Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 193 → Rev 318

/belle2/masterclass/visitormap.php
63,6 → 63,30
<body>
<h3>Belle II Masterclass visitor map</h3>
<div id="map" style="width: 90%; height: 90%"></div>
 
<?php
if (isset($_GET['debug'])){
$nc=0;
echo ('<table>');
$query = mysql_query('SELECT * FROM `visitor_map`');
while($row = mysql_fetch_array($query, MYSQL_ASSOC)){
if ($nc==0){
echo('<tr>');
foreach ($row as $key=>$val){
echo("<th>$key");
}
$nc++;
}
 
echo('<tr>');
foreach ($row as $key=>$val){
echo("<th>$val");
}
}
echo ('</table>');
}
?>
</body>
 
</html>