-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtutorial.php
More file actions
51 lines (48 loc) · 1.58 KB
/
tutorial.php
File metadata and controls
51 lines (48 loc) · 1.58 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
<?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(0,172,193,0.75);
border-radius: 15px;
}
</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_doc 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:500px; margin-top: 200px; width:250px;'>";
echo "<th><center><font color='white'>Name</font></center></th>";
while($row2 = mysqli_fetch_row($sql2))
{
echo "<tr><td><a target='self' href='$row2[3]' style='color: white;'>$row2[2]</a></td></tr>";
}
echo "</table>";
}
?>
</body>
</html>