-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
28 lines (23 loc) · 1007 Bytes
/
Copy pathcategory.php
File metadata and controls
28 lines (23 loc) · 1007 Bytes
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
<? include "include/header.php";
$query = "select * from category where id=".$_REQUEST['id'];
$books=$qry->querySelectSingle($query);
?>
<h2><?=$books['title'] ?></h2>
<div class="section group">
<?
$count=1;
$qry_all_prod=$qry->querySelect("select *from books where category=".$_REQUEST['id']." order by `id` desc");
foreach($qry_all_prod as $prod)
{?>
<div class="grid_1_of_3 images_1_of_3">
<a href="details.php?id=<?=$prod['id'] ?>"><img src="images/upload/thumbs/<?=$prod['file'] ?>" alt="" /></a>
<a href="details.php?id=<?=$prod['id'] ?>"><h3><?=$prod['title'] ?></h3></a>
<span class="price"><sup>Rs. <?=$prod['price'] ?></sub></span>
<div class="btn">
<a href="details.html">Add to Cart</a>
</div>
</div><? $count++; } ?>
<? if($count==1) echo "<div align='center'><p><br></p><h1>No Books Found</h1></div>"; ?>
</div>
</div>
<? include "include/footer.php"; ?>