-
Notifications
You must be signed in to change notification settings - Fork 0
/
help-info.php
102 lines (93 loc) · 3.42 KB
/
help-info.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/CovidTracker/assets/php/config.php';
?>
<!DOCTYPE HTML>
<html>
<head>
<title>cards</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Logo -->
<a href="admin-panel.php" class="logo">
<span class="symbol"><img src="images/logo.png" alt="" /></span><span class="title">Covid Tracker</span>
</a>
</div>
</header>
<!-- Main -->
<div id="main">
<div class="inner">
<h1>The Needy</h1>
<!-- Table -->
<section>
<div class="table-wrapper">
<?php
$query = "SELECT * from help limit 100;";
$queryResult = $db->query($query);
?>
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Category</th>
<th>Average BP</th>
<th>Message</th>
</tr>
</thead>
<?php
while ($queryRow = $queryResult->fetch_row()) {
echo "<tr>";
for($i = 0; $i < $queryResult->field_count; $i++){
echo "<td>$queryRow[$i]</td>";
}
echo "</tr>";
}
?>
</table>
<?php
$db->close();
?>
<!-- <table class="alt">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Category</th>
<th>Average BP</th>
<th>Message</th>
</tr>
</thead>
<tbody>
<tr>
<td>Item One</td>
<td>Ante@gmail.bpm</td>
<td>29.99</td>
<td>Mild</td>
<td>blah blah blah</td>
</tr>
</tbody>
</table> -->
</div>
</section>
</div>
</div>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<ul class="copyright">
<li>© E Lara. All rights reserved</li>
</ul>
</div>
</footer>
</div>
</body>
</html>