-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlist_hotel.php
28 lines (27 loc) · 1.11 KB
/
list_hotel.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
<?php
if(isset($_GET['q']))
{
$q=$_GET['q'];
$quser=mysqli_query($conn,"SELECT * FROM hotel WHERE city='$q'");
while($urow=mysqli_fetch_array($quser)){
?>
<div class="card" id="top-item">
<input type="hidden" name="test" id="hiddenfield" value="Rizki Reynaldi"/>
<div class="container-image-card">
<img src=<?php echo $urow['photo_dir']; ?> alt="Avatar" style="width:100%">
</div>
<div class="container">
<h4><b><?php echo $urow['nm_htl']; ?></b></h4>
<p><?php echo $urow['desc']; ?></p>
</div>
<button type="button" class="btn btnbooking" style="width:100%;background: linear-gradient(0.09turn,#EB2D2E,#1082C5,#7F257D)!important" data-toggle="modal" data-target="#myyModall"
data-namahotel="<?php echo $urow['nm_htl']; ?>" data-deschotel="<?php echo $urow['desc']; ?>"
data-idhotel="<?php echo $urow['idhotel']; ?>" data-picdir="<?php echo $urow['photo_dir']; ?>"
>
Book NOW!!!</button>
</div>
<?php }
}
else
header("location:index.php");
?>