帝国CMS灵动标签多表调用最新信息
[e:loop={'select*from(selectid,classid,titleurl,filename,title,newstime,titlepicfromphome_ecms_newswherenewstimeunionselectid,classid,titleurl,filename,title,newstime,titlepicfromphome_ecms_photow……
[e:loop={'select*from(selectid,classid,titleurl,filename,title,newstime,titlepicfromphome_ecms_newswherenewstimeunionselectid,classid,titleurl,filename,title,newstime,titlepicfromphome_ecms_photowherenewstimeunionselectid,classid,titleurl,filename,title,newstime,titlepicfromphome_ecms_flashwherenewstimeunionselectid,classid,titleurl,filename,title,newstime,titlepicfromphome_ecms_articlewherenewstime)aorderbynewstimedesclimit10',10,24,1}][/e:loop]
帝国CMS多表调用最新信息(演示代码为默认数据表下全站最新10条图片信息),自己根据需求可以附加条件,实现全站点击,全站头条,全站推荐等等
相关专题- 上一篇
帝国CMS多终端手机版内容图片压缩
PC端下上传的内容图片一般比较大,在移动端下加载会很慢,此时我们需要把这些图片处理下那么可以借助PHP的函数 preg_replace_callback: 函数执行一个正则表达式搜索并且使用一个回调进行替换。直接看代码://内容图片压缩处
- 下一篇
帝国cms标签TAG列表页显示信息数量num的方法
应用需求:在TAG结果列表页显示TAG名称,TAG包含信息数量和TAG本身的ID。变量说明TAG信息数量:<?=$GLOBALS['tagr']['num']?>TAG名称:<?=$GLOBALS['tagr']['tagname']?>TAGID:<?=$GLOBALS[&