代碼如下:
最新會員SQL:
select a.userid,a.username,b.userpic as titlepic from phome_enewsmember as a LEFT JOIN phome_enewsmemberadd as b ON a.userid=b.userid order by a.userid desc limit 10
按積分排行SQL:
select a.userid,a.username,b.userpic as titlepic from phome_enewsmember as a LEFT JOIN phome_enewsmemberadd as b ON a.userid=b.userid order by a.userfen desc limit 10
標簽?zāi)0逯杏?#091;!--userpic--]表示頭像,[!--userid--]表示用戶id,[!--username--]表示用戶名
sql查詢調(diào)用看這個說明:http://www.phome.net/doc/ecmsedu/base/mbzz/html/other.html#q1
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 帝國CMS首頁調(diào)用最新會員,活躍會員,積分排行