-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewc.php
More file actions
59 lines (45 loc) · 1.57 KB
/
viewc.php
File metadata and controls
59 lines (45 loc) · 1.57 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
<?php include 'admserver.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>admin home</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
.r{
margin: 8%;
padding:8%;
text-align: center;}
body{
background-image: url("https://i.stack.imgur.com/jGlzr.png");
}
</style>
</head>
<body>
<div class="r">
<?php if(isset($_SESSION['admin'])) : ?>
<?php $_SESSION['admin'];
$s=$_SESSION['admin'];?>
<?php
$q="SELECT * FROM `complaint`";
$res=mysqli_query($db,$q);
$rowcount=mysqli_num_rows($res);
for($i=0;$i<$rowcount;$i++)
{
$row=mysqli_fetch_row($res);
echo"<div class='container'>
<div class='row'>
<div class='col'>";
echo"<h4>id: ".$row[0]."<h4><br>
</div>";
echo"<div class='col'><h4>news:".$row[1]." </h4><br></div>
</div>
</div>";
echo "<br>";
// echo"<div class='mDIV'><button class='btn btn-outline-secondary' type='button' id='formButton'>click here to fetch more</button>";
//echo"<div id='myDIV' class='mDIVC'>";
}
?>
<?php endif ?>
</div>
</body></html>