Big escrow generator update

This commit is contained in:
Pinga 2023-08-15 11:45:34 +03:00
parent 821f4bfc84
commit 2ebeed2500
3 changed files with 228 additions and 229 deletions

8
automation/helpers.php Normal file
View 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'];
}