-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatusBordres.php
More file actions
47 lines (42 loc) · 1.28 KB
/
statusBordres.php
File metadata and controls
47 lines (42 loc) · 1.28 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head>
<title>Liste over deltagere til DIKULAN</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="MainCSS.css" />
<style>
table {
margin: -20px 0px 0px 0px;
border-spacing: 0px 20px;
font-size: 22px;
}
th, td {
border: 1px solid;
padding: 0px 10px;
text-align: center;
line-height: 2.5;
}
p.center {
text-align: center;
}
</style>
</head>
<body>
<!-- Her er en liste over alle reserverede borde, i et printervenligt format -->
<?php
include("db.php");
echo "<h1>Status over bordreservationen</h1>";
echo "<table border='1'>
<tr><th>Seat</th><th>Name</th><th>TicketID</th></tr>";
$BookingData = mysqli_query($db, "SELECT SeatID, PlayerName, TicketID
FROM booking");
while ($row = mysqli_fetch_array($BookingData)) {
echo " <tr>
<td>" . $row['SeatID'] . "</td>
<td width='300px'; style='text-align:center; vertical-align:middle;';>" . $row['PlayerName'] . "</td>
<td width='300px'; style='text-align:center; vertical-align:middle;';>" . $row['TicketID'] . "</td>
</tr>";
}
echo "</table>";
?>
</body>
</html>