-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcleaningdisplay.php
61 lines (53 loc) · 1.6 KB
/
cleaningdisplay.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
<?php
include ("header.php");
$user=$_GET['un'];
$hostelid=$_GET['hid'];
$hostel=$_GET['hn'];
// $user=$_SESSION['username'];
// $hostel=$_SESSION['hostelname'];
// $hostelid=$_SESSION['hostelid'];
if ($user == true)
{
}
else{
header("location:index.php");
}
?>
<table style=" border: 3px solid black;">
<tr>
<th>HostelID</th>
<th>StudentID</th>
<th>R.NO</th>
<th>Sweeping</th>
<th>washroom</th>
<th>washbasin</th>
<th>floor</th>
<th>Complaint</th>
<th>Delete</th>
</tr>
<?php
$user=$_GET['un'];
$hostelid=$_GET['hid'];
$hostel=$_GET['hn'];
$query="SELECT * FROM `cleaning` WHERE hostelid ='".$hostelid."'";
$data= mysqli_query($conn,$query);
$total = mysqli_num_rows($data);
if($total!=0){
while($result=mysqli_fetch_assoc($data)){
echo "<tr>
<td align='center'>".$result['hostelid']."</td>
<td align='center'>".$result['stdid']."</td>
<td align='center'>".$result['rmnumber']."</td>
<td align='center'>".$result['sweeping']."</td>
<td align='center'>".$result['washroom']."</td>
<td align='center'>".$result['washbasin']."</td>
<td align='center'>".$result['floor']."</td>
<td align='center'>".$result['text']."</td>
<td><a href='cleaningdelete.php?en=$result[entryno]'>Delete</a></td>
</tr>";
}
}
else{
echo "No Records found";
}
?>