7楼所说的多出代码的问题弄明白了,要把WHERE i.type='news'这行去掉,即用:- SELECT i.itemid, i.catid, i.uid, i.username, i.subject, i.dateline, i.viewnum, i.replynum, i.digest, i.top, i.picid, c.name, n.message, a.thumbpath, a.subject AS a_subject
- FROM supe_spaceitems i
- INNER JOIN supe_spacenews n ON i.itemid = n.itemid
- INNER JOIN supe_categories c ON i.catid = c.catid
- LEFT JOIN supe_attachments a ON i.picid = a.aid
- ORDER BY i.top DESC, i.itemid DESC
复制代码 否则就多出那段红色代码,不能正常显示。
测试发现,只要“1”页链接在“上一页”之后,点了就无反应。“1”页链接在“上一页”之前时,点了可以回到第一页,但地址栏在域名后有“?action-index-page-1”。楼主的网站完全正常,点“1”页链接后,域名后没有“?action-index-page-1”——是否对“1”页链接作了特殊处理? |