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();