37 lines
947 B
PHP
37 lines
947 B
PHP
<h1>Lagtabell</h1>
|
|
<br>
|
|
<table>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Navn</th>
|
|
<th>Bedrift</th>
|
|
<th>Kortnummer</th>
|
|
<th>Leder</th>
|
|
<th>Telefon</th>
|
|
<th>Deltagere</th>
|
|
<th>Runder</th>
|
|
<th>Bestetid</th>
|
|
</tr>
|
|
<?php
|
|
$iterator = 0;
|
|
foreach ($teams as $row) {
|
|
++$iterator;
|
|
// Escape all values
|
|
foreach ($row as $key => $value)
|
|
{
|
|
$row[$key] = htmlspecialchars($row[$key]);
|
|
}
|
|
echo '<tr>';
|
|
echo "<td>{$iterator}</td>";
|
|
echo "<td>{$row['LagNavn']}</td>";
|
|
echo "<td>{$row['Bedrift']}</td>";
|
|
echo "<td>{$row['Kortnummer']}</td>";
|
|
echo "<td>{$row['Lagleder']}</td>";
|
|
echo "<td>{$row['Telefon']}</td>";
|
|
echo "<td>{$row['Deltagere']}</td>";
|
|
echo "<td>{$row['Runder']}</td>";
|
|
echo "<td>{$row['Bestetid']}</td>";
|
|
echo '</tr>';
|
|
}
|
|
?>
|
|
</table>
|