답변 1개 / 댓글 1개
채택된 답변
+20 포인트
Copy
$result = sql_fetch("SELECT SUM(`wr_good`) AS `wr_good_sum` FROM `{$write_table}` WHERE `wr_is_comment` = 0");// 게시글 추천수, `wr_is_comment` = 1일 경우 코멘트 추천수, where 조건문 없앨 경우 게시글+코멘트 추천수echo $result['wr_good_sum'];
답변을 작성하려면 로그인이 필요합니다.