From b8badd67ea3aad1565b833a29bf17d3c57b054be Mon Sep 17 00:00:00 2001 From: Goeran Heinemann Date: Sun, 8 Mar 2020 10:57:11 +0100 Subject: [PATCH] neuste scans oben anzeigen --- html/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.php b/html/index.php index a757dd2..36e0883 100644 --- a/html/index.php +++ b/html/index.php @@ -10,7 +10,7 @@ foreach ($pdo->query($sql) as $row){ if (isset($_GET['source'])){ if (!isset($_GET['time'])){ - $sql = "SELECT * FROM scans WHERE site=?"; + $sql = "SELECT * FROM scans WHERE site=? order by id desc"; $stmt = $pdo->prepare($sql); $stmt->bindParam(1, $_GET['source']); $stmt->execute();