-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamtimetable.php
56 lines (50 loc) · 1.39 KB
/
examtimetable.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
<?php
include("header.php");
?>
<div class="slider_top2">
<h2>Exam Time Table</h2>
</div>
<div class="clr"></div>
<div class="body_resize">
<div class="body">
<div class="left">
<p>
<table class="tftable" width=612 border=1>
<tr>
<th width="121" scope=col> Registration Number</th>
<th width="105" scope=col> Course</th>
<th width="105" scope=col> Subject</th>
<th width="170" scope=col> Exam Date</th>
<th width="170" scope=col> Exam Time</th>
</tr>
<?php
$selexam = "SELECT exam.*, subjects.*, course.* FROM course INNER JOIN subjects ON course.courseid = subjects.courseid RIGHT OUTER JOIN exam ON subjects.subjectcode = exam.subjectcode where exam.regno=$_SESSION[regno]";
$selresult = mysqli_query($con,$selexam);
while($rs = mysqli_fetch_array($selresult))
{
echo "
<tr>
<td> $rs[regno]</td>
<td> $rs[coursename]</td>
<td> $rs[subjectname]</td>
<td> " . date("d-M-Y",strtotime($rs[datetime])) . " </td>
<td> " . date("h:i A",strtotime($rs[datetime])) . " </td>
</tr>
";
}
?>
</table>
<p> </p>
<p> </p>
</div>
<div class="right">
<?php
include("studentsidebar.php");
?>
</div>
<div class="clr"></div>
</div>
</div>
<?php
include("footer.php");
?>