-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
29 lines (24 loc) · 986 Bytes
/
author.php
File metadata and controls
29 lines (24 loc) · 986 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
29
<? include "include/header.php"; ?>
<h2>Authors</h2>
<?
$count=1;
$qry_all_prod=$qry->querySelect("select *from author order by `name` asc");
foreach($qry_all_prod as $data)
{?>
<div class="section group">
<h2 class="bg"><?=$data['name'] ?></h2>
<?
$count=1;
$qry_all_prod=$qry->querySelect("select *from books where author_id='".$data['author_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.php?id=<?=$prod['id'] ?>">Add to Cart</a>
</div>
</div><? }?></div><? }?>
</div>
<? include "include/footer.php"; ?>