帝国cms指定id范围随机调用信息

admin 2024年1月19日13:09:59帝国cms技巧评论1,246 次浏览阅读模式

内容摘要

<?php$randnum=10; //随机数量$randids='';$randdh='';for($i=1;$i<=$randnum;$i++){$randids.=$randdh.rand(5000,10000); //

文章正文

<?php

$randnum=10; //随机数量

$randids='';

$randdh='';

for($i=1;$i<=$randnum;$i++)

{

$randids.=$randdh.rand(5000,10000); //1为最小ID,100000为最大ID

$randdh=',';

}

?>

[ecmsinfo]0,4,44,0,3,34,0,'','id in ('.$randids.')'[/ecmsinfo

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日13:09:59
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17785.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: