SELECT
sum(grade), count(grade)
FROM
board_short_comment
WHERE
tbname = 'board_foreign_travel'
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: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hard/hosting2/doctor/www/detail_reply.php on line 235