forked from arjankc/online-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatview.php
78 lines (62 loc) · 1.63 KB
/
catview.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
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<?php
include ("files/head.php");
?>
<body class="animsition">
<?php
include ("files/header.php");
?>
<br>
<!-- Product -->
<div class="bg0 m-t-23 p-b-140">
<div class="container">
<div class="flex-w flex-sb-m p-b-52">
<div class="flex-w flex-c-m m-tb-10">
</div>
</div>
<div class="row isotope-grid">
<?php
include("files/connect.php");
$id=$_GET['cat_id'];
$sql="select * from products where category_id='$id'";
$results=$connect->query($sql);
while($final=$results->fetch_assoc()) {
?>
<div class="col-sm-6 col-md-4 col-lg-3 p-b-35 isotope-item women">
<!-- Block2 -->
<div class="block2">
<div class="block2-pic hov-img0">
<img src="
<?php
$path= $final['picture'];
$display = substr($path, 3);
echo $display;
?>" alt="IMG-PRODUCT">
<a href="details.php?details_id=<?php echo $final['id']?>" class="block2-btn flex-c-m stext-103 cl2 size-102 bg0 bor2 hov-btn1 p-lr-15 trans-04">
More Details
</a>
</div>
<div class="block2-txt flex-w flex-t p-t-14">
<div class="block2-txt-child1 flex-col-l ">
<a href="product-detail.html" class="stext-104 cl4 hov-cl1 trans-04 js-name-b2 p-b-6">
<?php echo $final['name'] ?>
</a>
<span class="stext-105 cl3">
Rs. <?php echo $final['price'] ?>
</span>
</div>
<div class="block2-txt-child2 flex-r p-t-3">
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<?php
include ("files/footer.php");
?>
</body>
</html>