DIY加入随机调用修改技巧
发布时间:2021-11-30 18:17:32 所属栏目:教程 来源:互联网
导读:打開sourceclassblockforumblock_thread.php 尋找: $query = DB::query(SELECT DISTINCT t.*$sqlfield 复制代码 在上方加入: //隨機調用 if($startrow==1000){ $yunhuifus = DB::query(SELECT DISTINCT t.*$sqlfield FROM `.DB::table(forum_thread).`
打開sourceclassblockforumblock_thread.php 尋找: $query = DB::query("SELECT DISTINCT t.*$sqlfield 复制代码 在上方加入: //隨機調用 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); } //隨機調用 ![]() (编辑:PHP编程网 - 黄冈站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |