帝国cms自定义列表多表查询统计代码

统计记录:

select count(*) as total from [!db.pre!]ecms_news  union select count(*) as total from [!db.pre!]ecms_movie

查询记录:

select classid,id,titleurl,title,newstime from [!db.pre!]ecms_news  union select classid,newstime from [!db.pre!]ecms_movie order  by newstime desc

-----------------------注释:-------------------------------

以上调用的是(新闻模型:news、电影模型:movie)两个模型的文章,两个模型用"Union"连接调用

若指定栏目用:where classid in(46,47,51),

若调用推荐在其后追加:and isgood=1,

若指定调用条数在其后追加:limit 10


相关文章

http://shang.qq.com/widget/group.php
[e:loop={91,5,0,0}] <liclass="bj_<?=$bqno?...
原文地址:帝国cms修改编辑器的预览功能作者:白头豕帝国CMS...
增加后台自定义编辑界面 当值后台界面的地址:D:...
原文地址:帝国cms调用当前栏目下所有栏目名称和链接顶级栏目...
解决方法:http://bbs.phome.net/showthread-13-148886-0.ht...