$img=DB::fetch_all("SELECT a.subject,a.tid,b.attachment FROM ".DB::table("forum_thread")." a LEFT JOIN ".DB::table("forum_threadimage")." b on b.tid=a.tid WHERE a.`attachment`=2 ORDER BY a.`dateline` DESC LIMIT 0,5");
$DiyPost[tid] | 主题TId |
$DiyPost[subject] | 主题标题 |
$DiyPost[attachment] | 封面图文件名 |