Код |
---|
$db_res = CForumTopic::GetList(array("LAST_POST_DATE"=>"DESC"), array("FORUM_ID"=>"5"),false,10); while ($ar_res = $db_res->Fetch()) { echo "<a href=forum/index.php?PAGE_NAME=read&FID=".FORUM_ID."&TID=".$ar_res["ID"].">".$ar_res["TITLE"]."</a><br>"; } |