-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewcertificates.php
64 lines (57 loc) · 1.45 KB
/
viewcertificates.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
64
<?php
include("header.php");
$selcertificates = "SELECT certificate . * , students . * , course.coursename FROM certificate INNER JOIN students
INNER JOIN course ON certificate.regno = students.regno AND students.courseid = course.courseid";
$selresult = mysqli_query($con,$selcertificates);
?>
<div class="slider_top2">
<h2>View certificate</h2>
</div>
<div class="clr"></div>
<div class="body_resize">
<div class="body">
<div class="left">
<p>
<p>
<?php
echo "<table class=tftable width=200 border=1>
<tr>
<th scope=col> Registration</th>
<th scope=col> student name</th>
<th scope=col> course</th>
<th scope=col> Totalmarks</th>
<th scope=col> Scoredmarks</th>
<th scope=col> Result</th>
<th scope=col> Status</th>
</tr>";
while($rs = mysqli_fetch_array($selresult))
{
echo "
<tr>
<td> $rs[regno]</td>
<td> $rs[fname] $rs[lname]</td>
<td> $rs[coursename]</td>
<td> $rs[totalmarks]</td>
<td> $rs[scoredmarks]</td>
<td> $rs[result]</td>
<td> $rs[status]</td>
</tr>
";
}
?>
</table>
</p>
<p> </p>
<p> </p>
</div>
<div class="right">
<?php
include("usersidebar.php");
?>
</div>
<div class="clr"></div>
</div>
</div>
<?php
include("footer.php");
?>