-
Notifications
You must be signed in to change notification settings - Fork 0
/
tunein.php
64 lines (55 loc) · 2.21 KB
/
tunein.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tune In</title>
<link rel="stylesheet" href="photo-include/css/bootstrap.min.css">
<link rel="stylesheet" href="photo-include/css/magnific-popup.css">
<link rel="stylesheet" href="photo-include/css/aos.css">
<link rel="stylesheet" href="photo-include/css/jquery.scrollbar.css">
<link rel="stylesheet" href="photo-include/css/fancybox.min.css">
<link rel="stylesheet" href="photo-include/css/style.css">
</head>
<body>
<!-- Image and text -->
<nav class="photoNavDiv">
<div class="container-fluid">
<a class="navbar-brand" href="#">
Dr. Ramesh Pokhriyal 'Nishank'
</a>
<span class="navbar-text">
<a href="index.php">Back</a>
</span>
</div>
</nav>
<main class="main-content">
<div class="container-fluid photos">
<div class="row align-items-stretch">
<?php
include './src/dbh.php';
$sql = "SELECT * FROM tunein ORDER BY date(date)DESC;";
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_assoc($result)) {
echo '
<div style="margin-right: 14%" class="col-6 col-md-6 col-lg-4" data-aos="fade-up">
<iframe width="600" height="315" src="'.$row['link'].'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</a>
<p class="text-light">
'.$row['title'].'
</p>
</div>
';
}
?>
</div>
</div>
</main>
<script src="photo-include/js/jquery-3.3.1.min.js"></script>
<script src="photo-include/js/jquery.magnific-popup.min.js"></script>
<script src="photo-include/js/aos.js"></script>
<script src="photo-include/js/jquery.fancybox.min.js"></script>
<script src="photo-include/js/jquery.scrollbar.js"></script>
<script src="photo-include/js/main.js"></script>
</body>
</html>