-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstudent_list.php
More file actions
40 lines (36 loc) · 812 Bytes
/
Copy pathstudent_list.php
File metadata and controls
40 lines (36 loc) · 812 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
<?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>
</head>
<body>
<center>
<h1> Teacher List </h1>
<hr/>
<table border='1'>
<?php
$sql = "SELECT t2.* FROM `users` as t1 INNER JOIN `user_info` as t2 on t1.user_id = t2.user_id WHERE `role`= 'Student' ";
$result = mysql_query($sql);
if ($result) {
while($row = mysql_fetch_assoc($result)) {
echo "<tr> <td>". $row["full_name"]."</td> <td>" . $row["email"]. "</td> <td>" . $row["phone"]."</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>