<?php
require('include/functions.php');
// ID 32784 is the conversation ID mentioned by the user
$msgs = sb_db_get('SELECT * FROM sb_messages WHERE conversation_id = 32784 ORDER BY id DESC LIMIT 10', false);
if ($msgs) {
    foreach ($msgs as $msg) {
        echo "ID: " . $msg['id'] . "\n";
        echo "Message: " . $msg['message'] . "\n";
        echo "Payload: " . $msg['payload'] . "\n";
        echo "Attachments: " . $msg['attachments'] . "\n";
        echo "-----------------------------------\n";
    }
} else {
    echo "No messages found for conversation 32784.\n";
}
?>
