<?php require_once('../Connections/DB.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_DB, $DB);
$query_Recordset1 = "SELECT * FROM Personen ORDER BY Datum DESC";
$Recordset1 = mysql_query($query_Recordset1, $DB) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Anmeldungen</title>
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="website">
<div class="farbiger_Text_rot" id="header1">
<table width="980" height="60" border="0">
<tr>
<td width="312"><a href="index.html"><img src="logo.png" width="250" height="47" /></a></td>
<td width="658" class="headertext"><a href="index.html" class="headertext">Sommerfest 2013 ADMIN</a></td>
</tr>
</table>
</div>
<div id="header2">
</div>
<ul class="Navialink" id="Navi">
<li><a href="index.html" class="Navialink">Home</a></li>
<li><a href="Anmeldung.html" class="Navialink">Anmeldungen</a></li>
<li><a href="mitbringen.html" class="Navialink">"Mitbringungen"</a></li>
<li><a href="Standdienst.html" class="Navialink">Standdienst</a></li>
<li><a href="Hilfe.html" class="Navialink">Suche</a></li>
<li><a href="Hilfe.html" class="Navialink">Hilfe</a>
</li><li> </li>
</ul>
<div id="main">
<br />
<h2>Hier können Sie sehen wie viel Personen sich schon angemeldet haben.</h2>
<p> </p>
<table width="403" border="1" align="center">
<tr>
<td width="155"><strong>Teilnehmer</strong></td>
<td width="232"><strong>Datum-Uhrzeit</strong></td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['Teilnehmer']; ?></td>
<td><?php echo $row_Recordset1['Datum']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<p> </p>
<br />
<?php
$Anzahl = mysql_query("SELECT sum(Teilnehmer) FROM Personen");
echo "$Anzahl";
?>
<br />
</div>
</div>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>