帝國CMS多表調用最新信息的方法
發布時間:2019-12-03 來源:未知 瀏覽: 關鍵詞:帝國CMS
本文實例講述了帝國CMS多表調用最新信息的方法。分享給大家供大家參考。具體實現方法如下:
代碼如下:
[e:loop={'select * from (select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime unionselect id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_photo where newstime unionselect id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_flash where newstime unionselect 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]
帝國CMS多表調用最新信息,該演示代碼為默認數據表下全站最新10條圖片信息,自己根據需求可以附加條件,實現全站點擊,全站頭條,全
站推薦等等.希望本文所述對大家的帝國CMS建站有所幫助。推薦學習《帝國cms教程》
以上就是帝國CMS多表調用最新信息的方法的詳細內容,更多請關注魔酷閣其它相關文章!
責任編輯:實速科技