Código PHP:
global $db, $sitename, $nukeurl;
include("config.php");
mysql_connect($dbhost, $dbuname, $dbpass);
@mysql_select_db('xmb18');
$content .="<div align=center><font color=#cccccc><b>Ultimos 10 Mensajes</b></div>";
$content .= "<A name= \"scrollingCode\"></A>";
$content .="<MARQUEE behavior= \"scroll\" direction= \"up\" height=\"220\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>";
$sql = "SELECT t.lastpost, t.tid, t.icon, t.author, t.subject, m.timeoffset, s.dateformat, s.addtime
FROM xmb_threads t, xmb_members m, xmb_settings s, xmb_forums f WHERE f.fid = t.fid ORDER BY lastpost
DESC LIMIT 0,5";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$lastpost = $row[lastpost];
$tid = $row[tid];
$icon = $row[icon];
$author = $row[author];
$subject = $row[subject];
$dateformat = $row[dateformat];
$addtime = $row[addtime];
$timeoffset = $row[timeoffset];
$lpdate = gmdate("d-M-Y", $lastpost + ($timeoffset * 3600) + ($addtime * 3600));
$lptime = gmdate("H:i:s", $lastpost + ($timeoffset * 3600) + ($addtime * 3600));
if ($icon) {
$smilie = $icon;
}else{
$smilie = 'info.gif';
}
$content .= "<img src=\"forum/images/smilies/$smilie\" border=\"0\"> <a href=\"forum/viewthread.php?tid=$tid\"><b>$subject</b></a><br>";
$content .= "<em><font color=\"#CCCCCC\" size=\"-7\" face=\"Verdana, Arial, Helvetica, sans-serif\">(Enviado el $lpdate a las $lptime por $author)</font></em><br><br>";
}
$content .= "</marquee><center><a href=\"$nukeurl\"><font color=\"#CCCCCC\" size=\"-7\" face=\"Verdana, Arial, Helvetica, sans-serif\"><b>$sitename</b></font></a></center>";
se lo agradesco de antemano....