$query = DB::query(“SELECT DISTINCT t.*$sqlfieldFROM `”.DB::table(‘forum_thread’).”` t$sqlfrom WHERE {$maxwhere}t.readperm=’0′$sqlAND t.displayorder>=’0′ORDER BY t.$orderby DESCLIMIT $startrow,$items;”); |
if($startrow==1000){$yunhuifus = DB::query(“SELECT DISTINCT t.*$sqlfieldFROM `”.DB::table(‘forum_thread’).”` t$sqlfrom WHERE {$maxwhere}t.readperm=’0′$sqlAND t.displayorder>=’0′ORDER BY t.$orderby DESC;”);$sqlNum = mysql_num_rows($yunhuifus);$startrow = mt_rand(0, $sqlNum-$items);} |
新闻热点
疑难解答