게시판의 no=0 의 다운로드 총 합계 어떻게 구하면 될까요.. 정보
게시판의 no=0 의 다운로드 총 합계 어떻게 구하면 될까요..본문
$rowsum = sql_fetch(" select sum(bf_download) as sum_out from $bo_table ");
$rowsum_out = $rowsum[sum_out];
위의 소스에서 뭘 더 어떻게 해야지요;;
$rowsum_out = $rowsum[sum_out];
위의 소스에서 뭘 더 어떻게 해야지요;;
댓글 전체
select sum(bf_download) as sum_out from $bo_table
where no=0
where no=0
ㅜㅜ k찰스님 아무래도 $bo_table 게 아닌듯 싶습니다...
mysql보니까 g4_board_file란 테이블 안에 bo_table랑 bf_no필드가있네요..
mysql보니까 g4_board_file란 테이블 안에 bo_table랑 bf_no필드가있네요..
$rowsum = sql_fetch(" select sum(bf_download) as sum_out from $g4[board_file_table] where bo_table = '$bo_table' and bf_no = '0' ");
해결했습니다..
이거군요...ㅠㅠ
답변주신 k찰스님 감사합니다.
해결했습니다..
이거군요...ㅠㅠ
답변주신 k찰스님 감사합니다.