From b2cfd31945e3c019c9eb3bc6bcee16224879bef4 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Mon, 18 Oct 2021 12:59:57 -0400 Subject: [PATCH] adding change and testing updater --- scripts/viewdb.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/viewdb.php b/scripts/viewdb.php index a8da518..41075cf 100644 --- a/scripts/viewdb.php +++ b/scripts/viewdb.php @@ -21,6 +21,11 @@ $sql = "SELECT * FROM detections $fulltable = $mysqli->query($sql); $totalcount=mysqli_num_rows($fulltable); +$sql1 = "SELECT * FROM detections + ORDER BY Date DESC, Time DESC + LIMIT 500"; +$mosttable = $mysqli->query($sql1); + $sql2 = "SELECT * FROM detections WHERE Date = CURDATE()"; $todaystable = $mysqli->query($sql2); @@ -243,7 +248,7 @@ while($rows=$speciestally ->fetch_assoc()) fetch_assoc()) +while($rows=$mosttable ->fetch_assoc()) { ?>