52 lines
850 B
PHP
52 lines
850 B
PHP
|
|
<?php
|
|
include '../head.php';
|
|
echo '<p>Hallo Welt</p>';
|
|
?>
|
|
<table >
|
|
<tr>
|
|
<th>Auftrags Nr.</th>
|
|
<th>Datum</th>
|
|
<th>Uhrzeit</th>
|
|
<th>Preis</th>
|
|
<th>Funktionen</th>
|
|
</tr>
|
|
|
|
|
|
<?php
|
|
include '../connect.php';
|
|
|
|
$query="select * from Auftrag";
|
|
$result=$sql->query($query);
|
|
|
|
if ($result->num_rows > 0) {
|
|
// output data of each row
|
|
while($row = $result->fetch_assoc()) {
|
|
$id=$row["AuftragsNr"];
|
|
$datum=$row["Datum"];
|
|
$zeit=$row["Zeit"];
|
|
$price=$row["GesamtPreis"];
|
|
|
|
echo "<tr>
|
|
<td>$id</td>
|
|
<td>$datum</td>
|
|
<td>$zeit</td>
|
|
<td>$price</td>
|
|
<td><a href='/view/auftrag.php?id=$id'>Details</a></td>
|
|
</tr>";
|
|
|
|
}
|
|
} else {
|
|
echo "<p> 0 results </p>";
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
include '../tail.php';
|
|
?>
|