-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsublist.php
More file actions
43 lines (32 loc) · 787 Bytes
/
Copy pathsublist.php
File metadata and controls
43 lines (32 loc) · 787 Bytes
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
<?php
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php
?>
<head>
<title>Online Quiz - Quiz List</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="quiz.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
include("header.php");
include("database.php");
if (!isset($_SESSION[login]))
{
header("Location: index2.php");
exit;
}
echo "<h2 class=head1> Select Subject to Give Quiz </h2>";
$rs=mysqli_query($cn,"select * from mst_subject");
echo "<table align=center>";
while($row=mysqli_fetch_row($rs))
{
echo "<tr><td align=center ><a href=showtest.php?subid=$row[0]><font size=4>$row[1]</font></a>";
}
echo "</table>";
?>
</body>
</html>