Show / Hide code
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Ergebnisliste</title>
</head>
<body>
<h1>Ergebnisliste</h1>
<p><a href="index.php">Zum Additions-Formular</a></p>
<table>
<thead>
<tr>
<td>Name</td>
<td>Ergebnis</td>
</tr>
</thead>
<tbody>
<?php
// Nicht mehr unterstützter PHP 5 Code
include("additionconfig.php");
$sql = "SELECT * FROM `liste` ORDER BY id DESC";
$req = mysql_query($sql) or die("Oh nein !<br>".$sql."<br>".mysql_error());
while( $data = mysql_fetch_array($req) ) {
echo "
<tr>
<td>".$data["name"]."</td>
<td>".$data["ergebnis"]."</td>
</tr>
";
}
?>
</tbody>
</table>
</body>
</html>