-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser_result.php
More file actions
88 lines (75 loc) · 3.72 KB
/
user_result.php
File metadata and controls
88 lines (75 loc) · 3.72 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
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
87
<?php
session_start();
//include ("feed.php");
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 name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title></title>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<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>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
</head>
<body background="images/background.jpg" height="100" style="background-repeat: no-repeat; background-attachment: fixed;">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<?php
include("database.php");
$email = $_SESSION['email'];
//echo $email;
$sql = mysqli_query($con, "select l.test_name,l.test_id,s.total_que, r.set_id,r.score,r.test_date,s.set_id,s.set_name,s.test_id from quizlevel l, mst_result r,quizset s where r.email='$email' and s.set_id=r.set_id and l.test_id=s.test_id") or die(mysqli_error($con));
$sqlsubject = mysqli_query($con, "select ");
if(mysqli_num_rows($sql)<1)
{
echo "<center>No test given</center>";
}
else
{
echo "<table class='bordered centered' style='margin-left:400px; width:650px;'>";
echo "<tr><font color=white>";
echo "<th style='border-top-left-radius: 15px;'><font color=white>Test Name</font></th>";
echo "<th><font color=white>Set</font></th>";
echo "<th><font color=white>Total Question</font></th>";
echo "<th><font color=white>Score</font></th>";
echo "<th style='border-top-right-radius: 15px;'><font color=white>Test Date</font></th>";
echo "</font></tr>";
while($row = mysqli_fetch_row($sql))
{
echo "<tr><td>$row[0]</td><td>$row[7]</td><td>$row[2]</td><td>$row[4]</td><td>$row[5]</td></tr>";
}
echo "</table>";
}
?>
</body>
</html>