原帖由 nicsonzone 于 2008-06-27 01:00:01 发表 太感谢楼主了.正在学习这个
还想请教一下,怎么调用某一版块的图片啊? |
where条件中加入 AND ui.fid=版面ID
例子 [ecmsinfo]'select u.attachment as titlepic,ui.subject as title,u.tid as id from club.cdb_attachments u LEFT JOIN club.cdb_threads ui ON u.tid=ui.tid where u.isimage=1 AND ui.fid=4 order by ui.tid DESC limit 5',0,30,0,24,9,0[/ecmsinfo]
|