-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquestion_list.php
More file actions
50 lines (47 loc) · 950 Bytes
/
Copy pathquestion_list.php
File metadata and controls
50 lines (47 loc) · 950 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
44
45
46
47
48
49
50
<?php
session_start();
if (!isset($_SESSION["admin"])) {
header('Location: index.php');
exit;
}
include "mysql_conn.php";
?>
<html>
<head>
<title>Admin Panel || Online Quiz Test</title>
<style>
table {
border-collapse: collapse;
border: 1px solid #000;
text-align: left;
}
th, td {
padding: 10px;
}
</style>
</head>
<body>
<center>
<h1> Question List </h1>
<hr/>
<table border='1'>
<tr><th>Subject</th><th>Question Paper Name</th><th>Test Time</th></tr>
<?php
$sql = "SELECT * FROM `mcq_paper`";
$result = mysql_query($sql);
if ($result) {
while($row = mysql_fetch_assoc($result)) {
echo "<tr> <td>". $row["subject"]."</td> <td>" . $row["paper_name"]. "</td> <td>" . $row["paper_time"]."</td> </tr>";
}
}else {
echo "Theacher not found..!!";
}
?>
</table>
</center>
<hr/><br>
<a href="admin.php">Go To Your Dashboard</a>
<br>
<a href="logout.php">Logout</a>
</body>
</html>