-
Notifications
You must be signed in to change notification settings - Fork 0
/
filteredresult.php
54 lines (50 loc) · 1.9 KB
/
filteredresult.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
<?php
require_once ("configuration/db_config.php");
require_once ("controllers/searchcategories.php");
?>
<?php
$title ="Categories and Location";
$description ='';
$keyWords ='';
include ("includes/head.php") ?>
<div class="wrapper">
<?php include ("includes/navbar.php");
$newad = new SearchCategory();
$ads= $newad->filteredBackEnd();
if(!empty($ads)){
?>
<section class="portfolio">
<?php
foreach($ads as $ad){
$adsImages = explode(',', $ad['images']);
?>
<div>
<a href="singleproduct/<?php echo $ad['id'] ?>/<?php echo $ad['category_id'] ?>/<?php echo $ad['user_id']; ?>">
<img src="<?php echo $adsImages[0] ?>" class="adjust-image" alt="Port folio logos"></a>
<div class="product-view-bg">
<hr>
<span class="product-view"><?php echo $ad['title'] ?></span> <br>
<span class="product-view">For:<b class="product-view-purpose">
<?php echo $ad['purpose'] ?></b></span> <br>
<span class="product-view">Location: <?php echo $ad['region_name'] ?></span>,
<span class="product-view"><?php echo $ad['state_name'] ?> State </span> <br>
<span class="product-view">Price: ₦ <b class="product-view-price">
<?php echo number_format($ad['price']) ?></b></span> <br>
<span class="product-view">
<a href="singleproduct/<?php echo $ad['id'] ?>/<?php echo $ad['category_id'] ?>/<?php echo $ad['user_id'] ?>">View details</a>
</span>
</div>
</div>
<?php
}
}else{
echo "No record found";
}
?>
</section>
<span id="timer"></span>
<?php include ("includes/footer.php"); ?>
<script src="js/popper.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/main.js"></script>
<script src="js/mainnavbarjs.js"></script>