本文实例讲述了帝国CMS多表调用最新信息的方法。分享给大家供大家参考。具体实现方法如下:
代码如下:
[e:loop={'select * from ( select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime union select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_photo where newstime union select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_flash where newstime union select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_article where newstime) a order by newstime desc limit 10',10,24,1}] [/e:loop]
原创文章,作者:JYQKJ,如若转载,请注明出处:http://www.wangzhanshi.com/n/10128.html