-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (29 loc) · 987 Bytes
/
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
<?php
require_once 'core/init.php';
include 'includes/head.php' ;
include 'includes/navigation.php' ;
include 'includes/headerfull.php';
include 'includes/leftbar.php';
$sql = "SELECT * FROM products WHERE categories = 1 AND deleted= 0 ";
$featured = $db->query($sql);
?>
<!-- Main content -->
<div class="col-md-8">
<div class="row">
<h3 class="text-left">MENU</h3>
<div class="row">
<?php while($product = mysqli_fetch_assoc($featured)):?>
<div class="col-md-4">
<h4><?= $product['name']; ?></h4>
<img src="<?= $product['image']; ?>" alt=<?= $product['name']; ?> class="img-thumb">
<p class="price">RM <?= $product['price']; ?></p>
<button type="button" class="btn btn-sm btn-success" onclick="detailsmodal(<?= $product['id'];?>)">
Details</button>
</div>
<?php endwhile; ?>
</div>
</div>
<?php
include 'includes/rightbar.php';
include 'includes/footer.php';
?>