<?php
require('include/functions.php');
$cid = 25275;
$msgs = sb_db_get('SELECT * FROM sb_messages WHERE conversation_id = ' . $cid . ' ORDER BY id DESC LIMIT 20', false);
if ($msgs) {
    foreach ($msgs as $m) {
        $msg_text = mb_substr($m['message'], 0, 50);
        echo "Msg ID: " . $m['id'] . " | User: " . $m['user_id'] . " | Time: " . $m['creation_time'] . " | Msg: " . $msg_text . "...\n";
    }
}
?>
