up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user