-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem.php
More file actions
74 lines (66 loc) · 1.81 KB
/
problem.php
File metadata and controls
74 lines (66 loc) · 1.81 KB
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
71
72
73
74
<?php
include('config.php');
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" href="bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css.css">
<title>Problems</title>
</head>
<body>
<div class="row">
<div class="col-md-10 col-xs-11" >
<p>Local Welfare Management</p>
</div>
<div class="col-md-2 col-xs-1">
<a type="button" class="button" href="index.html" >Back</a>
</div>
</div>
<div class="row">
<div class="col-md-2 col-xs-2 col-sm-2"></div>
<div class="col-md-8 col-xs-8 col-sm-8" >
<?php
$sql="SELECT * FROM complaints where district='".$_SESSION['district']."' order by id desc" ;
$result=$con->query($sql);
if($result->num_rows>0){
while ($row=$result->fetch_assoc()) {?>
<table id="form">
<tr>
<th>Name</th>
<td><?php echo $row['name'];?></td>
</tr>
<tr>
<th>E-mail</th>
<td><?php echo $row['email'];?></td>
</tr>
<tr>
<th>Address</th>
<td><?php echo $row['address'];?></td>
</tr>
<tr>
<th>Problem</th>
<td><?php echo $row['problem'];?></td>
</tr>
<?php } ?> </table> <?php }
else{
echo "<center>zero complaints found</center>";}
?>
</div>
</div>
<style type="text/css">
table,td,tr{
border: 1px solid white;
margin-bottom: 20px;
}
td{
height: 50px;
width: 500vh;
}
</style>
</body>
</html>