durp... COUNT(*)

This commit is contained in:
mischa 2022-08-24 13:06:34 +00:00
parent c58ab04d1b
commit 7c5f1fcd82
1 changed files with 1 additions and 1 deletions

View File

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