답변 1개
채택된 답변
+20 포인트
7년 전
<?php
// 총게시물수
$write_total = sql_fetch(" select sum(bo_count_write) as sum_count_write from {$g5['board_table']} ");
$total_cnt = $write_total['sum_count_write'];
// 총코멘트수
$comment_total = sql_fetch(" select sum(bo_count_comment) as sum_count_comment from {$g5['board_table']} ");
$total_cnt2 = $comment_total['sum_count_comment'];
?>
총게시물수 : <?php echo number_format($total_cnt); ?>
총코멘트수 : <?php echo number_format($total_cnt2); ?>
참고
http://gnustudy.com/bbs/board.php?bo_table=gnu_tip&wr_id=132
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인