-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexreport.php
32 lines (31 loc) · 974 Bytes
/
indexreport.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index report</title>
<style>
table{
border-collapse:collapse;
}
th {
width:80%;
}
</style>
</head>
<body>
<?php
$id = $_POST['id'];
include 'include/Database.php';
$sql = "SELECT classcode, classfication, businesss_name, physica_address, postal_address FROM homepage WHERE classcode = '$id'";
$db = new Database($sql);
$resp = $db->execute_query();
echo "<table border=1>";
echo "<tr><th colspan=6>Students Hostel Allocation History</th></tr>";
echo "<tr><th>Student ID</th><th>Hostel</th><th>Room</th><th>Semester</th><th>Year</th></tr>";
while ($row = mysqli_fetch_row($resp)){
echo "<tr><td>$row[1]</td><td>$row[2]</td><td>$row[5]</td><td>$row[3]</td><td>$row[4]</td></tr>";
}
echo "</table>";
?>
</body>
</html>