same error
(SELECT IF(SUM(photoplog_ratecomment.rating) > 0, SUM(photoplog_ratecomment.rating) / SUM(IF(photoplog_ratecomment.rating > 0, 1, 0)), 0) FROM photoplog_ratecomment WHERE fileid = 2) AS ave
FROM photoplog_ratecomment
WHERE moderate = 0
AND fileid = 2;
MySQL-Fehler : 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 'SELECT IF(SUM(photoplog_ratecomment.rating) > 0, SUM(photoplog_
Fehler-Nr. : 1064
Datum : Thursday, December 15th 2005 @ 06:44:53 AM
Skript :
http://yansima.org/forum/photoplog/index.php?n=2
Referrer :
http://yansima.org/forum/admincp/pho....php?do=modify