<?php $randnum=100; //随机数量 $randids=''; $randdh=''; for($i=1;$i<=$randnum;$i++) { $randids.=$randdh.rand(1,10000); //1为最小ID,100000为最大ID $randdh=','; } ?> [e:loop={'selfinfo',10,0,0,"id in ($randids)"}] <li>·<a href="<?=$bqsr[titleurl]?>" target="_blank"><?=sub($bqr[title],0,40,false)?></a></li> [/e:loop] </ul>
|