首頁  >  文章  >  CMS教程  >  帝國CMS多錶呼叫最新資訊的方法

帝國CMS多錶呼叫最新資訊的方法

silencement
silencement轉載
2019-11-26 14:31:142376瀏覽

帝國CMS多錶呼叫最新資訊的方法

本文實例講述了帝國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]

帝國CMS多表呼叫最新資訊,此示範程式碼為預設資料表下全站最新10個圖片資訊,自己根據需求可以附加條件,實現全站點擊,全站頭條,全

站推薦等等.希望本文所述對大家的帝國CMS建站有所幫助。推薦學習《帝國cms教程

以上是帝國CMS多錶呼叫最新資訊的方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:www.word666.com。如有侵權,請聯絡admin@php.cn刪除