-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
66 lines (59 loc) · 1.89 KB
/
index.php
File metadata and controls
66 lines (59 loc) · 1.89 KB
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
<html>
<head>
<?php include "header.php"; ?>
</head>
<body>
<?php include "nav1.php"; ?>
<!-- carousel start-->
<div id="demo" class="carousel slide" data-ride="carousel" style="margin-top:2px">
<ul class="carousel-indicators">
<li data-target="#demo" data-slide-to="0" class="active"></li>
<li data-target="#demo" data-slide-to="1"></li>
<li data-target="#demo" data-slide-to="2"></li>
</ul>
<div class="carousel-inner">
<div class="carousel-item active">
<img src = "myimages/3_1.webp" width="100%" height=400px>
</div>
<div class="carousel-item">
<img src = "myimages/3_2.webp" width="100%" height=400px>
</div>
<div class="carousel-item">
<img src = "myimages/3_3.webp" width="100%" height=400px>
</div>
<div>
<a class="carousel-control-prev" href="#demo" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#demo" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
</div>
</div>
<!-- carousel end-->
<div class="container" style = "margin-top : 50px">
<h2 class="text-center" style = "font-family:Monotype Corsiva ; color : red">Our Product categories</h2>
<center><img src="myimages2/line1.jpg" style = "height:20px;width:500px"></center>
<?php
include "dbconfigure.php";
$query = "select * from category";
$rs = my_select($query);
echo "<div class='row'>";
while($row = mysqli_fetch_array($rs))
{
echo "<div class='col-sm-4'>";
echo "<br>";
echo "<h2 class='text-center' style='font-family:Forte ; color:#E0033A'>$row[1]</h2>";
$loc = "admin/".$row[2];
echo "<a href = 'giftbycategory.php?category=$row[0]&categoryname=$row[1]'><img class='zoom' src='$loc' style='width:340px ; height:236px ; margin-top:20px;'></a>";
echo "</div>";
}
echo "</div>";
?>
<br><br>
<footer class="text-center" style="font-family:Forte ; color:#E0033A;font-size:25">
Come be the part of wrapify family
</footer>
</body>
</html>