first real comit

This commit is contained in:
2021-06-12 09:42:49 +02:00
parent ef55c4940c
commit e578e30897
3215 changed files with 583167 additions and 0 deletions

51
app/list/auftrag.php Normal file
View File

@@ -0,0 +1,51 @@
<?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';
?>