Last 10 Forum topics
Started on the old forum in June 2009 · view the original in the archive · old links redirect here
Guest
#2
$sql = "SELECT id, name FROM ibwf_topics ORDER BY
lastpost DESC LIMIT 0,10";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$tlnm = htmlspecialchars($item[1]);
$tpclnk = "<a
href=\"index.php?action=viewtpc&sid=$sid&tid=$item[0]&go=last\">$tlnm</a>";
echo "$tpclnk<br/>";