-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.php
37 lines (33 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head>
<?php
include 'include\common.php';
?>
<title>Lebens</title>
</head>
<body>
<?php include 'search_form.php';?>
<div class="container">
<div class="jumbotron" style="text-align: center;">
<h1>Welcome to our Store !</h1>
<p> We have the best cameras, watches and shirts for you. No need to hunt around, we have all in one place.</p>
</div>
</div>
<div class='container'>
<?php
require_once 'include/Check-if-added.php';
$query=mysqli_query($con, "SELECT * FROM products ; ") ;
while ($row = mysqli_fetch_array($query)) { ?>
<div class="col-md-3 col-sm-6">
<div class="thumbnail">
<?php echo"<img src='admin/Image/".$row['image']."' class='img-thumbnail' >"; ?>
<div class="caption">
<?php echo "<a href='product_detail.php?id=".$row['id']."'><h1>".$row['brand']." ".$row['name']."</h1></a>"; ?>
<p>Price: <?php echo $row['price'] ; ?> </p>
</div>
</div>
</div>
<?php } ?>
</body>
</html>