11 lines
494 B
PHP
11 lines
494 B
PHP
<?php
|
|
require_once __DIR__ . '/../config/config.php';
|
|
$db = Database::getInstance();
|
|
$r = $db->fetch('SELECT * FROM conversations WHERE message_type = :mt ORDER BY id DESC LIMIT 5', ['mt' => 'reaction']);
|
|
var_export($r);
|
|
echo "\nAll recent rows:\n";
|
|
$rows = $db->fetchAll('SELECT id,message_id,message_type,direction,content,reaction_to_message_id,reaction_emoji,reply_to_message_id FROM conversations ORDER BY id DESC LIMIT 10');
|
|
foreach ($rows as $row) {
|
|
echo json_encode($row) . "\n";
|
|
}
|