本文实例讲述了帝国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]登录后复制
本文地址:http://ezhuoer.com