Empire CMS list content page template (list.var) SQL call column name

888u

Last update at :2024-03-15,Edit by888u

How to call the column name in the empire cms list content page template (list.var)? In fact, we can use SQL query output call!

If you fill in the column alias in the empire cms, then the column list content template (list.var) calls the column name tag [!–this.classname–]. It is actually the column alias called. I don’t know if this is considered empire. The BUG of cms is done deliberately! The solution is to use SQL to query and output a column name separately.

The specific code is as follows:

$cl=$empire->fetch1("select classname from phome_enewsclass where classid='$r[classid]'"); $classname=$cl['classname'];

Recommended site searches: cheap virtual host, Hong Kong server purchase, Taobao virtual host domain name registration center, Shanghai domain name registration, US host rental, how to query domain name registration number, foreign domain name, US server, Hong Kong server defense,

Empire CMS list content page template (list.var) SQL call column name

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码