-
Notifications
You must be signed in to change notification settings - Fork 71
/
adminpage.php
70 lines (64 loc) · 2.2 KB
/
adminpage.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
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Feedback Details</title>
<link rel="stylesheet" href="css/styles2.css" />
</head>
<body>
<form action="php/logout.php" method="POST">
<div class="logout">
<input type="submit" value="Log Out" name="logout" />
</div>
</form>
<?php
session_start();
require 'php/config.php';
if (isset($_SESSION['login_user'])) {
$userLoggedIn = $_SESSION['login_user'];
$result = mysqli_query($con,"SELECT * FROM feedback");
echo "<table border='1' id='students-table'>
<tr>
<th>Year</th>
<th>Sem</th>
<th>Date</th>
<th>Branch</th>
<th>Section</th>
<th>Subject</th>
<th>Ques1</th>
<th>Ques-2i</th>
<th>Ques-2ii</th>
<th>Ques-2iii</th>
<th>Ques-2iv</th>
<th>Ques-2v</th>
<th>Ques3</th>
<th>Ques4</th>
<th>Remarks</th>
</tr>";
while($row = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>" . $row['year'] . "</td>";
echo "<td>" . $row['sem'] . "</td>";
echo "<td>" . $row['date'] . "</td>";
echo "<td>" . $row['branch'] . "</td>";
echo "<td>" . $row['section'] . "</td>";
echo "<td>" . $row['subject'] . "</td>";
echo "<td>" . $row['ques1'] . "</td>";
echo "<td>" . $row['ques2i'] . "</td>";
echo "<td>" . $row['ques2ii'] . "</td>";
echo "<td>" . $row['ques2iii'] . "</td>";
echo "<td>" . $row['ques2iv'] . "</td>";
echo "<td>" . $row['ques2v'] . "</td>";
echo "<td>" . $row['ques3'] . "</td>";
echo "<td>" . $row['ques4'] . "</td>";
echo "<td>" . $row['remarks'] . "</td>";
echo "</tr>";
}
echo "</table>";
}
else {
//header("Location: index.php");
}
?>
</body>
</html>