-
Notifications
You must be signed in to change notification settings - Fork 14
/
viewvideos.php
53 lines (45 loc) · 1.25 KB
/
viewvideos.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
<?php
session_start();
if ( $_SESSION[ "sidx" ] == "" || $_SESSION[ "sidx" ] == NULL ) {
header( 'Location:studentlogin' );
}
$userid = $_SESSION[ "sidx" ];
$userfname = $_SESSION[ "fname" ];
$userlname = $_SESSION[ "lname" ];
?>
<?php include('studenthead.php'); ?>
<div class="container">
<div class="row">
<div class="col-md-8">
<h3> Welcome <a href="welcomestudent.php" <?php echo "<span style='color:red'>". $userfname." ".$userlname."</span>";?> </a></h3>
<?php
include('database.php');
$sql="SELECT * FROM video";
$rs=mysqli_query($connect,$sql);
echo "<h2 class='page-header'>Videos Details</h2>";
echo "<table class='table table-striped' style='width:100%'>
<tr>
<th>Video Title</th>
<th>Description</th>
<th>View</th>
</tr>";
while($row=mysqli_fetch_array($rs))
{
?>
<tr>
<td>
<?PHP echo $row['V_Title'];?>
</td>
<td>
<?PHP echo $row['V_Remarks'];?>
</td>
<td><a href="viewvideos2.php?viewid=<?php echo $row['V_id']; ?>"> <input type="button" Value="View" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal"></a>
</td>
</tr>
<?php
}
?>
</table>
</div>
</div>
<?php include('allfoot.php'); ?>