그누보드 게시판 전체글수 구하는 쿼리 > 정보공유

본문 바로가기

정보공유

일반글
MySQL

그누보드 게시판 전체글수 구하는 쿼리

페이지 정보

게시물QR코드

본문

전체 게시판 전체글수 구하기

select sum(bo_count_write) as total_count from g5_board 

 

전체 게시판 전체글수 구하기 쿼리를 그누보드에서 응용해보겠습니다.

<?php

$row = sql_fetch(" select sum(bo_count_write) as total_count from g5_board");

echo $row['total_count'];

?>

 

아래는 그룹의 전체글수 구하기 입니다.

<?php

$row = sql_fetch("select sum(bo_count_write) as total_count from g5_board where gr_id = '그룹명' ");

echo $row['total_count'];

?>

댓글목록

등록된 댓글이 없습니다.

  • Addr.부산광역시 동구 중앙대로 319, 9층 L4호(초량동, 부산YMCA빌딩) Email. gnuwiz@naver.com
  • BR. 625-68-00172 TRC. 2019-부산해운대-1186 TEL. 0507-1382-2790
All rights reserved.