-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreview_data2.php
48 lines (45 loc) · 1.6 KB
/
review_data2.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
<?php
// Start MySQL Verbinding
include('dbconnect.php');
?>
<html>
<head>
<title>Arduino Temperature Log</title>
<style type="text/css">
body { font-family: "Trebuchet MS", Arial; }
</style>
<link rel="stylesheet" href="css/tabel-style.css">
</head>
<body>
<!--<h1>Arduino Temperature Log</h1>-->
<table class="fixed_headers">
<thead>
<tr>
<th>ID</th>
<th>Date and Time</th>
<th>tambor</th>
<th>buis</th>
<th>libra</th>
<th>ambient</th>
</tr>
</thead>
<tbody>
<?php
// Retrieve all records and display them
// $result = mysqli_query($dbh, "SELECT * FROM temperature ORDER BY id ASC");
$result = mysqli_query($dbh, "SELECT * FROM temp2 ORDER BY id ASC");
while ($row = mysqli_fetch_array($result)) {
echo '<tr>';
echo ' <td>' . $row["id"] . '</td>';
echo ' <td>' . $row["event"] . '</td>';
echo ' <td>' . $row["tambor"] . '</td>';
echo ' <td>' . $row["buis"] . '</td>';
echo ' <td>' . $row["libra"] . '</td>';
echo ' <td>' . $row["ambient"] . '</td>';
echo '</tr>';
}
?>
</tbody>
</table>
</body>
</html>