-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcat.php
76 lines (69 loc) · 2.74 KB
/
cat.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
<?php
include 'inc/header.php';
include 'inc/pagination.php';
$id = @$_GET['id'];
plus_views($id,'cat');
$query = mysqli_query($conn,"SELECT * FROM categories WHERE id='$id' LIMIT 1");
$category = mysqli_fetch_array($query);
?>
<div class="product-big-title-area">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="product-bit-title text-center">
<h2><?=$category['name'];?></h2>
</div>
</div>
</div>
</div>
</div>
<div class="single-product-area">
<div class="zigzag-bottom"></div>
<div class="container">
<div class="row">
<?php
while ($row = mysqli_fetch_assoc($nquery)) {
?>
<div class="col-md-3 col-sm-6">
<div class="single-shop-product">
<div class="product-upper">
<img style="width: 195px;height: 243px" src="<?=get_image($row['image']);?>" alt="">
</div>
<h2><a href="single-product.php?id=<?=$row['id'];?>"><?=$row['title'];?></a></h2>
<div class="product-carousel-price">
<?php
if ($row['currency']=='$') {
$price = $row['currency'].$row['price'];
}else{
$price = $row['price'].' '.$row['currency'];
}
?>
<ins><?=$price;?></ins>
</div>
<div class="product-option-shop">
<a class="add_to_cart_button" data-quantity="1" data-product_sku="" data-product_id="70" rel="nofollow" href="">Add to cart</a>
</div>
</div>
</div>
<?php
}
?>
</div>
<div class="row">
<div class="col-md-12">
<div class="product-pagination text-center">
<nav>
<ul class="pagination">
<?php
echo $pagination;
?>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php
include 'inc/footer.php';
?>