-
Notifications
You must be signed in to change notification settings - Fork 3
/
playVideo.php
86 lines (58 loc) · 2.43 KB
/
playVideo.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
<?php
include "nav.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View</title>
<link rel="stylesheet" href="css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/playVideo.css">
</head>
<body>
<div class="container mt-5">
<div class="header text-center mt-5">
<h2>
All Video
<small class="text-muted">Tutorials </small>
</h2>
<h3 class="text-muted mt-5">
“Education is the most powerful weapon which you can use to change the world”
<br> – Nelson Mandela</br>
</h3>
</div>
<div style="margin-top:100px ;" class="row">
<?php
include "connect.php";
$name = $_GET['p_name'];
$sql = "SELECT * FROM video_details where name = '$name' ";
$res = mysqli_query($conn, $sql);
if (mysqli_num_rows($res) > 0) {
while ($video = mysqli_fetch_assoc($res)) {
?>
<div class="col-lg-4 col-md-6 col-sm-12 mb-5">
<form action="" method="GET">
<div class="card" style="width: 20rem;">
<video controls="controls" source src="uploads/<?= $video['video_url'] ?>" type="video/mp4">
</video>
<div class="card-body mt-5">
<h5 class="card-title" style="color: tomato;font-weight:bold"><?PHP echo $video['name'] ?></h5>
<p class="card-text text-center"><?PHP echo $video['Description'] ?></p>
</div>
</div>
</form>
</div>
<?php
}
}
?>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>
</html>
<?php
include "footer.php";
?>