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:
28:
|
<? php
include('db.php');
$sql = "SELECT * FROM `user`" or die("$sql<hr />" .mysql_error());
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result))
{
$konto = $row[Konto];
$zahl1 = $row[Gehalt];
$zahl2 = $row[Miete];
$zahl3 = $row[Stallmiete];
$summe = $konto - $zahl1 - $zahl2 - $zahl2;
echo "<table border="0" width="100%">
<tr>
<td>Kontoinhaber</td>
<td>Kontostand</td>
</tr>
<tr>
<td>".$row[Name]."</td>
<td>$summe</td>
</tr>";
</table>
}
?>
|