-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupcoming-streams.php
More file actions
169 lines (123 loc) · 5.63 KB
/
upcoming-streams.php
File metadata and controls
169 lines (123 loc) · 5.63 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
session_start();
error_reporting(0);
include('conFile/conection.php'); // Ensure this file establishes a mysqli connection
?>
<!doctype html>
<html lang="en">
<head>
<?php
include "repeated/links.php";
?>
<script type="application/x-javascript">
addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){ window.scrollTo(0,1); }
</script>
<script>
new WOW().init();
</script>
</head>
<body>
<main>
<!-- navbar code -->
<?php
include "repeated/navbar.php";
?>
<!-- navbar code end -->
<header class="site-header d-flex flex-column justify-content-center align-items-center">
<div class="container">
<div class="row">
<div class="col-lg-12 col-12 text-center">
<h2 class="mb-0">Live Seminars</h2>
</div>
</div>
</div>
</header>
<section class="section section-padding" id="section_2">
<div class="container">
<div class="row">
<div class="col-lg-12 col-12">
<div class="section-title-wrap mb-5">
<h4 class="section-title">Latest Streams</h4>
</div>
</div>
<?php
// Query to select all live stream packages
$sql = "SELECT * FROM livestreampackages";
$result = $conn->query($sql);
// Check if the query was successful
if ($result === false) {
die("Query failed: " . $conn->error);
}
// Fetch all results
if ($result->num_rows > 0) {
while ($row = $result->fetch_object()) {
?>
<div class=" col-12 mb-4 mb-lg-0 itemvid video-fil" data-category="productivity">
<div class="custom-block d-flex">
<div class="">
<div class="custom-block-icon-wrap">
<div class="section-overlay"></div>
<a href="detail-page.php" class="custom-block-image-wrap">
<img width: 113px !important;
src="./admin/livestreamimages/<?php echo htmlentities($row->PackageImage); ?>"
class="custom-block-image img-fluid" alt="">
<a href="#" class="custom-block-icon">
<i class="bi-play-fill"></i>
</a>
</a>
</div>
</div>
<div class="custom-block-info">
<h5 class="mb-2">
<a href="details.php">
<?php echo htmlentities($row->PackageType); ?>
</a>
</h5>
<div class="profile-block d-flex">
<p>
<b>Guest: </b><?php echo htmlentities($row->PackageGuest); ?>
<img src="images/verified.png" class="verified-image img-fluid" alt="">
</p>
</div>
<p class="mb-0"><?php echo htmlentities($row->PackageDetails); ?></p>
<div class="custom-block-bottom d-flex justify-content-between mt-3">
<div class="mt-2">
<a href="livestream-details.php?lpkgid=<?php echo htmlentities($row->LivePackageId); ?>"
class="btn custom-btn">
watch
</a>
</div>
<div class="mt-2">
<a href="" class="fa-regular fa-rupee-sign me-1">
<span>PKR<?php echo htmlentities($row->PackagePrice); ?></span>
</a>
</div>
</div>
</div>
</div>
</div>
<?php
}
}
// Free result set
$result->free();
// Close the connection
$conn->close();
?>
</div>
</div>
</section>
</main>
<!-- footercode -->
<?php
include 'repeated/footer.php';
?>
<!-- footercode end -->
<!-- javaScript links -->
<?php
include 'repeated/jslinks.php';
?>
<!-- javaScript links end -->
</body>
</html>