mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 10:06:05 +02:00
Big escrow generator update
This commit is contained in:
parent
821f4bfc84
commit
2ebeed2500
3 changed files with 228 additions and 229 deletions
8
automation/helpers.php
Normal file
8
automation/helpers.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
function fetchCount($pdo, $tableName) {
|
||||
$stmt = $pdo->prepare("SELECT count(id) AS count FROM {$tableName};");
|
||||
$stmt->execute();
|
||||
$result = $stmt->fetch();
|
||||
return $result['count'];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue