PHP Code:
$result = $vbulletin->db->query_read("
SELECT mess FROM gb
ORDER BY datum DESC limit 15
");
$output = '';
while ($row = $vbulletin->db->fetch_array($result))
{
eval('$output.= "' . fetch_template('Your_Template') . '";');
}
"Your_Template" would be used to format each line.
The resulting variable $output can then be included in the template you are using to display the whole page.