-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage-list.php
95 lines (67 loc) · 2.09 KB
/
package-list.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
89
90
91
92
93
94
95
<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tourest - Explore the World</title>
<!--
- favicon
-->
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">
<!--
- custom css link
-->
<link rel="stylesheet" href="./assets/css/style.css">
<!--
- google font link
-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Comforter+Brush&family=Heebo:wght@400;500;600;700&display=swap"
rel="stylesheet">
</head>
<body id="top">
<?php
include("header.php");
?>
<section class="section destination">
<div class="container">
<p class="section-subtitle">Destinations</p>
<h2 class="h2 section-title">Choose Your Place</h2>
<ul class="destination-list">
<?php $sql = "SELECT * from tbltourpackages";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<li class="w-50">
<a href="package-details.php?pkgid=<?php echo htmlentities($result->PackageId);?>" class="destination-card">
<figure class="card-banner">
<img src="admin/pacakgeimages/<?php echo htmlentities($result->PackageImage);?>" width="1140" height="1100" loading="lazy"
alt=" " class="img-cover">
</figure>
<div class="card-content">
<h3 class="h3 card-title"><?php echo htmlentities($result->PackageName);?></h3>
<p class="card-subtitle"></b> <?php echo htmlentities($result->PackageLocation);?></p>
</div>
</a>
</li>
<?php }} ?>
</div>
</section>
<?php
include("footer.php");
?>
</body>
</html>