-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
66 lines (58 loc) · 1.53 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Result Display System</title>
<link rel="stylesheet" href="./styles/loginform.css?" />
</head>
<body>
<div class="container1">
<img src="./I²IT-Logo-New.png" alt="#" class="container" />
</div>
<div class="exam">
<p>Exam Results</p>
</div>
<?php
session_start();
if(isset($_SESSION["error"]))
{
?>
<div class="error">
<?php echo $_SESSION["error"]; ?>
</div>
<?php
unset($_SESSION["error"]);
}
?>
<form action="middle.php" method="post">
<div class="inputBox">
<input type="text" required="required" name="seat" />
<span>Seat Number</span>
</div>
<div class="inputBox">
<input type="text" required="required" name="mothername" />
<span>Mother's Name</span>
</div>
<div>
<input type="submit" value="Submit" class="submission" />
<input type="reset" value="Re-enter" class="submission" />
</div>
</form>
<div class="note">
<?php
include 'db.php';
$sql = "SELECT note FROM notes ORDER BY id DESC LIMIT 1";
$result = $conn->query($sql);
if ($result->num_rows > 0)
{
while($row = $result->fetch_assoc())
{
echo html_entity_decode($row["note"]);
}
}
?>
</div>
</body>
</html>