$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.')'
以下代码加入到帝国cms模板里面$ue=$empirefetch1(select * from phome_ecms_fj where mc=$navinfor[mc] limit 1);$uee=$empirefetch1(select * from phome_enewsclas where clasid=$ue[clasid] limit 1);$str=
[e:loop={"select * from phome_enewszt where clasid='$GLOBALS[navclasid]'",10,24,0}]a href="/=$bqr[ztpath]" target="_blank"=$bqr[ztname]/a[/e:loop]调用本栏目所属专题
以下代码加到帝国cms模板里面,比如首页模板ul[e:loop={select userid as userid,truename as title,userpic as titlepic from [!db.pre!]enewsmemberadd order by userid desc limit 8,10,24,0}]lia href=/e/space/us