(一)、当前栏目ID或专题ID:$GLOBALS[navclassid]
通过这个变量可以输出这个栏目id的所有数据(如:select * from phome_enewsclass where classid='$GLOBALS[navclassid]')
(二)、使用范例:调用当前栏目下的栏目简介。
用SQL标签调用:
[e:loop={"select intro from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]
<?=$bqr[intro]?>
[/e:loop]
或用PHP调用:
<?php
$cr=$empire->fetch1("select intro from phome_enewsclass where classid='$GLOBALS[navclassid]'");
echo $cr[intro];
?>
【腾讯云】11.11云上盛惠!云服务器首年1.8折起,买1年送3个月!
11.11云上盛惠!海量产品·轻松上云!云服务器首年1.8折起,买1年送3个月!超值优惠,性能稳定,让您的云端之旅更加畅享。


腾讯云 12-20 广告

