有的模块好用 有的就不好用 发现个规律 就是代码越短的模块(功能少)一般都好用 一旦代码太长(功能多) 就容易出现问题 不管是不是自定义的模块都一样
例如
将此模块粘贴到 指定位置
<!--{block name="spaceimage" parameter="showattach/1/order/i.dateline DESC/limit/0,1/cachetime/1800/subjectlen/30/subjectdot/1/showdetail/1/messagelen/120/messagedot/1/cachename/Photo/tpl/data"}--><!--最新图片列表-->
刷新页面 出错!
SupeSite info: MySQL Query Error
Time: 2006-10-19 1:57pm
Script: /site/index.php
SQL: SELECT a.aid AS a_aid, a.type AS a_type, a.itemid AS a_itemid, a.uid AS a_uid, a.dateline AS a_dateline, a.filename AS a_filename, a.subject AS a_subject, a.attachtype AS a_attachtype, a.isimage AS a_isimage, a.size AS a_size, a.filepath AS a_filepath, a.thumbpath AS a_thumbpath, a.downloads AS a_downloads, i.*, ii.* FROM supe_attachments a INNER JOIN supe_spaceitems i ON i.itemid=a.itemid AND i.type='image' AND i.folder=1 WHERE a.type='image' LEFT JOIN supe_spaceimages ii ON ii.itemid=i.itemid ORDER BY a.dateline DESC LIMIT 0,1
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN supe_spaceimages ii ON ii.itemid=i.itemid ORDER BY a.dateline DESC LIM' at line 1
Errno.: 1064
Similar error report has beed dispatched to administrator before. |