帝国cms栏目导航调用之SQL语句调用一级栏目和二级栏目的方法

帝国cms调用一级栏目及下面的二级栏目调用方法如下:vB4码友部落

SQL语句vB4码友部落

<?php $ecms_bq_sql=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewsclass where bclassid=0 order by myorder limit 6",14,24,0);$bqno=0;while($bqr=$empire->fetch($ecms_bq_sql)){$bqsr=sys_ReturnEcmsLoopStext($bqr);$bqno++;?><li><a href="http://www.ym97.com/web/empire/<?=$public_r[newsurl]?><?=$bqr[classpath]?>/"><?=sub($bqr[classname],0,54,false)?></a><div><?php$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewsclass where bclassid=$bqr[classid] order by myorder limit 20",14,24,0);$bqno2=0;while($bqr2=$empire->fetch($ecms_bq_sql2)){$bqsr2=sys_ReturnEcmsLoopStext($bqr2);$bqno2++;?> <a href="http://www.ym97.com/web/empire/<?=$public_r[newsurl]?><?=$bqr2[classpath]?>/"><?=sub($bqr2[classname],0,54,false)?></a><?php}?></div></li><?php}?>

上一篇:帝国cms打印模板的使用方法 vB4码友部落