SQL语句出错: select count(`ArchId`) from `archives` as main left join `archives_category` as cate on main.`CateId` = cate.`CateId` where main.`CateId` = or `UId` like '%,,%'
错误代码:#1064 - 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 'or `UId` like '%,,%'' at line 6 Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /data/web/gooloobox.com/archives.php on line 27 Warning: Division by zero in /data/web/gooloobox.com/inc/function.php on line 283 SQL语句出错: select main.`ArchId`, main.`CateId`, main.`BriefDescription`, main.`Title`, main.`ExtField`, main.`PicPath_0`, main.`UpdateTime` from `archives` as main left join `archives_category` as cate on main.`CateId` = cate.`CateId` where main.`Language` = 0 and ( cate.`CateId` = or cate.`UId` like '%,,%' ) order by main.`MyOrder` desc, main.`ArchId` desc limit -0,
错误代码:#1064 - 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 'or cate.`UId` like '%,,%' ) order by main.`MyOrder` desc, main.`ArchId` desc' at line 15 Warning: include(/data/web/gooloobox.com/inc/tpl): failed to open stream: Success in /data/web/gooloobox.com/archives.php on line 58 Warning: include(): Failed opening '/data/web/gooloobox.com/inc/tpl/' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /data/web/gooloobox.com/archives.php on line 58