-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
45 lines (45 loc) · 1.74 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
<!-- header -->
<?php
include 'working/header.php';
$categories=$db -> query("select * from watches_categories");
?>
<!-- end header -->
<!--slides-->
<div id ="slides" class="center">
<img class="Slides" src="./img/p1.jpg">
<img class="Slides" src="./img/p2.jpg">
<img class="Slides" src="./img/p3.jpg">
<img class="Slides" src="./img/p4.jpg">
<img class="Slides" src="./img/p5.jpg">
</div>
<!--end slides-->
<!-- about me -->
<div id="aboutUs" class="text center pb-5">
<h1>about us</h1>
<p>
ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<!-- end about me-->
<!-- cards --->
<div id="cardContainer" class="center card-deck ">
<?php while ($category = $categories -> fetch_assoc()): ?>
<div class="card">
<img class="card-img-top" src="./img/p<?php echo $category['id'];?>.jpg" >
<div class="card-body">
<h5 class="card-title"><?php echo $category['name']; ?></h5>
<p class="card-text">Browse our selection of super fancy watches for all sorts of occasions. These watches are very flexibile, durable, water resistant, you name it.</p>
<a href="shop.php?id=<?php echo $category['id']; ?>" class="btn btn-primary">View</a>
</div>
</div>
<?php endwhile; ?>
</div>
<!-- end cards -->
<!-- footer -->
<?php include 'working/footer.php'; ?>
<!-- end footer -->