-
Notifications
You must be signed in to change notification settings - Fork 1
/
advertisement.php
88 lines (79 loc) · 2.32 KB
/
advertisement.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
79
80
81
82
83
84
85
86
87
88
<?php require 'db_connect.php';
$state=$_GET['state'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Advertisements — Adbhut Bharat</title>
<link rel="stylesheet" href="css/banner.css">
</head>
<body>
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous">
</script>
<script type="text/javascript">
$(function(){
$("#header").load("header.html");
});
</script>
<header>
<div id="header"></div>
</header>
<br><br><br><Br><Br><br><br><br><br>
<div class ="ad_box">
<center><h1>Advertisements</h1></center>
<?php
$sql="select a.*, b.name from advertisement a join agent b on a.agent_id=b.agent_id where a.state='$state';";
$result=$conn->query($sql);
if($result->num_rows>0)
{
?>
<div class="row">
<?php
while($row=$result->fetch_assoc())
{
if($row['status']=='Active')
{
?>
<div class="column" style="float: left;">
<div class="card">
<img src="images/k1.jpg" alt="Jane" style="width:100%">
<div class="container">
<center><h2 style="text-transform: capitalize;"><?php echo $row["city"]." ".$row["state"];?></h2></center>
<p><?php echo $row["offer"]." ".$row["price"];?></p>
<div>
<p style="text-transform: capitalize;"><?php echo $row["name"];?></p>
<p><?php echo "Rating-".$row["rating"]; ?></p>
<p ><button class="button">BOOK NOW</button></p>
</div>
</div>
</div>
</div>
<?php
}
}
}
?>
</div>
</div>
<br><br><br><br><br><br><br>
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous">
</script>
<script type="text/javascript">
$(function(){
$("#footer").load("footer.html");
});
</script>
<footer>
<div id="footer"></div>
</footer>
</body>
</html>