<?php
require('include/functions.php');
// Fetch latest 5 messages across all conversations to find the recent test
$msgs = sb_db_get('SELECT * FROM sb_messages ORDER BY id DESC LIMIT 5', false);
if ($msgs) {
    foreach ($msgs as $m) {
        echo "Msg ID: " . $m['id'] . " | Conv ID: " . $m['conversation_id'] . " | User: " . $m['user_id'] . " | Time: " . $m['creation_time'] . "\n";
        echo "Msg Content: [" . $m['message'] . "]\n\n";
    }
}
?>
