Home >php教程 >php手册 >Some common codes of Empire CMS

Some common codes of Empire CMS

WBOY
WBOYOriginal
2016-10-15 10:31:471606browse

1. How to implement efficient random calls in Empire CMS

$randnum=10; //Random number
$randids='';
$randdh='';
for($i=1;$ i<=$randnum;$i++)
{
$randids.=$randdh.rand(1,100000); //1 is the minimum ID, 100000 is the maximum ID
$randdh=',';
}
?> ;
[e:loop={column ID, display number, operation type, only display pictures with titles, "id in ($randids)"}]
//Template code content
[/e:loop]

2 , Column page parent column link address:

$cr['classid']=$class_r[$GLOBALS[navclassid]][bclassid];
$bclassurl=sys_ReturnBqClassname($cr,9);
echo $bclassurl;
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn