<!--{eval $fids = '2,36,37,39';$recs=array();$query=DB::query("SELECT * FROM ".DB::table('forum_forumrecommend')." where fid in ($fids) order by `tid` desc limit 10");while($item=DB::fetch($query))$recs[]=$item;}--> <!--{loop $recs $rec}--> <li><a href="forum.php?mod=viewthread&tid=$rec['tid']">$rec['subject']</a><span class="pipe">|</span>作者<!--{$rec['author']}--></li> <!--{/loop}--> |
那么代码: <!--{eval $fids = '2,36,37,39';$recs=array();$query=DB::query("SELECT fid,max(tid) as tid,subject,tid,author FROM ".DB::table('forum_forumrecommend')." where fid in ($fids) group by `fid` order by `tid` desc limit 10");while($item=DB::fetch($query))$recs[]=$item;}--> <!--{loop $recs $rec}--> <li><a href="forum.php?mod=viewthread&tid=$rec['tid']">$rec['subject']</a><span class="pipe">|</span>作者<!--{$rec['author']}--></li> <!--{/loop}--> |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: discuz x3.2调用版主推荐主题