commit 7c5f1fcd82cd8cca52458c6cd94141d036eb20c0 from: mischa date: Wed Aug 24 13:06:34 2022 UTC durp... COUNT(*) commit - c58ab04d1b2eb04b4521517b9b2cbcd0514f9078 commit + 7c5f1fcd82cd8cca52458c6cd94141d036eb20c0 blob - 69c9fdaad0630ed2ef36234428def67541c94b4c blob + 27b137ac3ec635df0672bc29d5dd23b8679ea19a --- index.php +++ index.php @@ -16,7 +16,7 @@ function db_connect() { } function count_urls($dbh) { - $sth = $dbh->query("SELECT id FROM ". DB_TABLE); + $sth = $dbh->query("SELECT COUNT(*) FROM ". DB_TABLE); return $sth->fetchColumn(); }