-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCategory_Room.php
98 lines (77 loc) · 2.77 KB
/
Category_Room.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Hotel Category
</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section class="navbar">
<div class="container">
<div class="menu text-right">
<ul>
<li>
<!-- <a href="Home.php">Home</a> -->
</li>
</ul>
</div>
<div class="clearfix"></div>
</div>
</section>
<!-- Navbar Section Ends Here -->
<section class="food-menu">
<div class="container">
<h2 class="text-center">Rooms Menu</h2>
<?php
require_once './config.php';
//write the query to get data from users table
$sql = "SELECT * FROM room ";
//execute the query
$result = $dbconn->query($sql);
if (mysqli_num_rows($result) > 0) {
//output data of each row
while ($row = $result->fetch_assoc()) {
?>
<form action="food_order_code.php" method="POST">
<div class="food-menu-box">
<div class="food-menu-img">
<img src="PIC/<?php echo $row['img']; ?>" alt="" class="img-responsive">
</div>
<div class="food-menu-desc">
<h4><?php echo $row['name']; ?></h4>
<p class="food-detail">
<?php echo $row['details']; ?>
</p>
<p class="food-detail"> * <?php echo $row['bed']; ?></p>
<p class="food-detail"> * <?php echo $row['air']; ?></p>
<p class="food-detail"> * <?php echo $row['wifi']; ?></p>
<p class="food-detail"> * <?php echo $row['bar']; ?></p>
<p class="food-detail"> * <?php echo $row['bath']; ?></p>
<p class="food-detail"> * <?php echo $row['tv']; ?></p>
<br>
<div class="col-md-3 position-relative">
<br>
</div>
<h5 class="text-center">Please Call to order </h5>
</div>
</div>
</form>
<?php
$dbconn->connect_error;
}
}
?>
<div class="clearfix"></div>
</div>
</section>
<!-- footer Section Starts Here -->
<section class="footer">
<div class="container text-center">
</div>
</section>
<!-- footer Section Ends Here -->
</body>
</html>