mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-10 16:58:34 +02:00
8 lines
No EOL
204 B
PHP
8 lines
No EOL
204 B
PHP
<?php
|
|
|
|
function fetchCount($pdo, $tableName) {
|
|
$stmt = $pdo->prepare("SELECT count(id) AS count FROM {$tableName};");
|
|
$stmt->execute();
|
|
$result = $stmt->fetch();
|
|
return $result['count'];
|
|
} |