SELECT
sum(grade), count(grade)
FROM
board_short_comment
WHERE
tbname = 'board_c5'
AND
board_number =
AND
grade > 0
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 'AND
grade > 0' at line 9 Warning: happy_mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/hosting_users/yu824989/www/detail_reply.php on line 320