This commit is contained in:
Lizandro Guarnizo
2026-01-21 22:51:57 -05:00
parent 32f5f580f7
commit a70b8f36b5
3 changed files with 49 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
require_once __DIR__ . '/../config/config.php';
try {
$db = Database::getInstance();
$ids = [3];
$placeholders = implode(',', array_fill(0, count($ids), '?'));
$existing = $db->fetchAll("SELECT id, name, template_name FROM message_templates WHERE id IN ($placeholders)", $ids);
var_export($existing);
} catch (Exception $e) {
echo "Exception: " . $e->getMessage() . PHP_EOL;
}