-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·72 lines (51 loc) · 1.47 KB
/
index.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
<?php include "header.php"; ?>
<!-- CAtegories Section Starts Here -->
<section class="categories">
<div class="container">
<h2 class="text-center">Explore Foods</h2>
<?php
$sql = "SELECT * FROM tbl_category";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
?>
<a href="Category.php?id=<?php echo $row["id"]; ?>">
<div class="box-3 float-container">
<img src="admin/<?php echo $row["image_name"] ?>" alt="Pizza" class="img-responsive img-curve">
<h3 class="float-text text-white"><?php echo $row["title"]; ?></h3>
</div>
</a>
<?php } } ?>
<div class="clearfix"></div>
</div>
</section>
<!-- Categories Section Ends Here -->
<!-- fOOD MEnu Section Starts Here -->
<section class="food-menu">
<div class="container">
<h2 class="text-center">Food Menu</h2>
<?php
$sqlw = "SELECT * FROM tbl_food";
$resultw = $conn->query($sqlw);
if ($resultw->num_rows > 0) {
while($roww = $resultw->fetch_assoc()) {
?>
<div class="food-menu-box">
<div class="food-menu-img">
<img style="height: 100px;" src="admin/<?php echo $roww["image_name"] ?>" alt="Chicke Hawain Pizza" class="img-responsive img-curve">
</div>
<div class="food-menu-desc">
<h4><?php echo $roww["title"]; ?></h4>
<p class="food-price">$<?php echo $roww["price"]; ?></p>
<p class="food-detail">
<?php echo $roww["description"]; ?>
</p>
<br>
</div>
</div>
<?php }} ?>
<div class="clearfix"></div>
</div>
</section>
<!-- fOOD Menu Section Ends Here -->
<?php include "footer.php"; ?>