1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
|
<table width="80%">
<tr>
<td colspan="3">Stallplan</td>
</tr>
<tr>
<td width="45%">Name</td>
<td rowspan="lass die Zeilen in der Tabelle der Pferde auszählen und teile sie durch zwei">Stallgasse</td>
<td width="45%">Name</td>
</tr>
<?php
$sql = "SELECT id, name FROM pferde WHERE stall='stall' ORDER BY id;";
$result = mysql_query($sql) OR die(mysql_error());
if(mysql_num_rows($result)) {
while($row = mysql_fetch_assoc($result)) {
echo "
<tr>
<td>".$row['id']."</td>
<td>".$row['id']."</td>
</tr>";
}
} else {
echo "Es sind keine Pferde vorhanden";
}
?>
</table>
|