$query = DB::query(“SELECT DISTINCT t.*$sqlfield FROM `”.DB::table(‘forum_thread’).”` t $sqlfrom WHERE {$maxwhere}t.readperm=’0′ $sql AND t.displayorder>=’0′ ORDER BY t.$orderby DESC LIMIT $startrow,$items;” ); |
if($startrow==1000){ $yunhuifus = DB::query(“SELECT DISTINCT t.*$sqlfield FROM `”.DB::table(‘forum_thread’).”` t $sqlfrom WHERE {$maxwhere}t.readperm=’0′ $sql AND t.displayorder>=’0′ ORDER BY t.$orderby DESC;” ); $sqlNum = mysql_num_rows($yunhuifus); $startrow = mt_rand(0, $sqlNum-$items); } |
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: discuz在diy帖子列表模塊調(diào)用隨機文章帖子