-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexaminerpanel.php
63 lines (53 loc) · 2.14 KB
/
examinerpanel.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
54
55
56
57
58
59
60
61
62
63
<?php
include("header.php");
if(!isset($_SESSION[examinerid]))
{
header("Location: index.php");
}
?>
<div class="slider_top2">
<h2>Examiner panel</h2>
</div>
<div class="clr"></div>
<div class="body_resize">
<div class="body">
<div class="left">
<?php
$qresult = mysqli_query($con,"SELECT * FROM students");
$numstudents = mysqli_num_rows($qresult);
$qresult = mysqli_query($con,"SELECT * FROM users");
$numusers = mysqli_num_rows($qresult);
$qresult = mysqli_query($con,"SELECT * FROM course");
$numcourse = mysqli_num_rows($qresult);
$qresult = mysqli_query($con,"SELECT * FROM subjects");
$numsubjects = mysqli_num_rows($qresult);
$qresult = mysqli_query($con,"SELECT * FROM exam");
$numexam = mysqli_num_rows($qresult);
$qresult = mysqli_query($con,"SELECT * FROM questions");
$numquestions = mysqli_num_rows($qresult);
$qresult = mysqli_query($con,"SELECT * FROM results");
$numresults = mysqli_num_rows($qresult);
$qresult = mysqli_query($con,"SELECT * FROM certificate");
$numcertificate = mysqli_num_rows($qresult);
?>
<h2 class="about"> No. of students: <?php echo $numstudents; ?></h2>
<h2 class="about"> No. of users: <?php echo $numusers; ?></h2>
<h2 class="about"> No. of course: <?php echo $numcourse; ?></h2>
<h2 class="about"> No. of subjects: <?php echo $numsubjects; ?></h2>
<h2 class="about"> No. of exam: <?php echo $numexam; ?></h2>
<h2 class="about"> No. of questions: <?php echo $numquestions; ?></h2>
<h2 class="about"> No. of results: <?php echo $numresults; ?></h2>
<h2 class="about"> No. of certificate: <?php echo $numcertificate; ?></h2></h2>
<p> </p>
</div>
<div class="right">
<?php
include("usersidebar.php");
?>
</div>
<div class="clr"></div>
</div>
</div>
<?php
include("footer.php");
?>