-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_pack_book.php
70 lines (65 loc) · 2.18 KB
/
admin_pack_book.php
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
include 'database.php';
$que="SELECT * FROM `bookings`";
$result = mysqli_query($db, $que);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
table, td, th {
border: 1px solid black;
}
table {
border-collapse: collapse;
width: 100%;
}
.center {
margin-left: auto;
margin-right: auto;
}
td {
text-align: center;
}
</style>
</head>
<body>
<h1 class="heading-title"> Package Bookings </h1>
<table border="5" cellspacing="5" cellpadding="5">
<tr class="center">
<th>Sl No</th>
<th>ID</th>
<th>Customer Name</th>
<th>Customer Email</th>
<th>Customer Phone</th>
<!-- <th>booking_date</th> -->
<th>Number of people</th>
<th>City</th>
<th>Destination</th>
</tr>
<?php
$i=1;
if ($num = mysqli_num_rows($result)>0) {
while ($run = mysqli_fetch_assoc($result)) {
echo "
<tr class='data'>
<td>".$i++."</td>
<td>".$run['booking_id']."</td>
<td>".$run['customer_name']."</td>
<td>".$run['customer_email']."</td>
<td>".$run['phone']."</td>
<td>".$run['number_of_people']."</td>
<td>".$run['city']."</td>
<td>".$run['destination']."</td>
<td><a href='delete1.php?id=".$run['booking_id']."' id='btn'>Delete</a></td>
</tr>
";
}
}
?>
</table>
</br><a id="a6" href="admin.php" onclick="myFunction(document.getElementById(this.id))">Back</a>
</body>
</html>