王国CMS启用当今频道下的频道介绍等信息内容

2020-10-27 04:58 admin
当今频道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}]

[/e:loop]
用PHP启用:
$cr=$empire- fetch1( select intro from phome_enewsclass where classid= $GLOBALS[navclassid]
echo $cr[intro];
?

义务编写:shanhui