-
Notifications
You must be signed in to change notification settings - Fork 0
/
triggers.php
57 lines (46 loc) · 1.02 KB
/
triggers.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
<!DOCTYPE html>
<?php
require "menu.php";
?>
<html>
<body>
<div class="container">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Rents</th>
<th>Reservations</th>
<th>Customers</th>
<th>Employees</th>
<th>Stores</th>
<th>Vehicles</th>
</tr>
</thead>
<?php
require 'connectToDB.php';
$query = "SELECT * FROM counts";
if($query_run = mysqli_query($mysql_connection,$query))
{
if($row = mysqli_fetch_assoc($query_run))
{
$rents = $row["Rents"];
$res = $row["Reservations"];
$cus = $row["Customers"];
$emp = $row["Employees"];
$stores = $row["Stores"];
$veh = $row["Vehicles"];
echo '<tr><td>'.$rents.'</td><td>'.$res.'</td><td>'.$cus.'</td><td>'.$emp.'</td><td>'.$stores.'</td><td>'.$veh.'</td></tr>';
}
}
else
{
echo 'Error';
}
mysqli_close($mysql_connection);
?>
</table>
</div>
</div>
</body>
</html>