帝國CMS調用當前欄目下的欄目簡介等信息
發布時間:2019-10-31 來源:未知 瀏覽: 關鍵詞:
(一)、當前欄目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];
?>
責任編輯:實速科技