-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathviewvideos2.php
53 lines (41 loc) · 1.29 KB
/
viewvideos2.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-12">
<h3> Welcome <a href="welcomestudent.php" <?php echo "<span style='color:red'>". $userfname." ".$userlname."</span>";?> </a></h3>
<?php
include('database.php');
$video_id= $_GET['viewid'];
$sql="SELECT * FROM video WHERE V_id=$video_id";
$rs=mysqli_query($connect,$sql);?>
<?php
while($row=mysqli_fetch_array($rs))
{
?>
<div class="row text-enter">
<div class="col-12 col-md-6">
<h2>Title: <?PHP echo $row['V_Title'];?></h2>
<?PHP echo $row['V_Url'];?>
</div>
<br>
<div class="col-12 col-md-6 text-justify">
<h3>Video Description:</h3>
<p> <?PHP echo $row['V_Remarks'];?> </p>
<a href="viewvideos.php"> <input type= "button" Value="Back" class="btn btn-warning btn-sm" data-toggle="modal" data-target="#myModal"></a>
</div>
</div>
<?php
}
?>
</div>
</div>
<?php include('allfoot.php'); ?>