-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser_tutorial_video.php
More file actions
62 lines (57 loc) · 2.09 KB
/
user_tutorial_video.php
File metadata and controls
62 lines (57 loc) · 2.09 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
<?php
session_start();
include ("user_nav.php");
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
table{
background-color: rgba(238, 238, 238,0.9);
border-radius: 15px;
border-color: black;
border-width:medium;
margin-top: 10px;
}
th
{
text-align: center;
background-color: #000;
}
</style>
</head>
<body background="images/background.jpg" height="100">
<?php
include ("database.php");
$email = $_SESSION['email'];
//echo $email;
$sql = mysqli_query($con,"select * from userdetails where email='$email'");
$row = mysqli_fetch_row($sql);
//echo $row[0];
$sql2 = mysqli_query($con,"select * from tutorial_video where sub_id=$row[0]");
if(mysqli_num_rows($sql2)<1)
{
echo "No tutorial available currently";
}
else
{
//echo "<div class='row' style=''>";
echo "<table class='bordered centered' style='margin-left:400px; margin-top: 50px; width:750px;'>";
echo "<th style='border-top-left-radius: 15px;'><font color=white><center>Name</center></font></th>";
echo "<th style='border-top-right-radius: 15px;'><font color=white><center>Video</center></font></th>";
while($row2 = mysqli_fetch_row($sql2))
{
echo "<tr><td><font style='color: black;'>$row2[2]</font></td><td><iframe width='360' height='240' src='$row2[3]' frameborder='0' gesture='media' allow='encrypted-media' allowfullscreen></iframe></td></tr>";
}
echo "</table>";
}
?>
</body>
</html>