게시물 읽음 전체 합산
//게시물뷰
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = 1 ";
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} ";
$result = sql_query($sql);
$t_view = 0;
while($row=sql_fetch_array($result)) {
$tmp_write_table = $g5['write_prefix'].$row['bo_table'];
$row2 = sql_fetch(" select sum(wr_hit) as total from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
$t_view += $row2['total'];
}
echo number_format($t_view);
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = 1 ";
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} ";
$result = sql_query($sql);
$t_view = 0;
while($row=sql_fetch_array($result)) {
$tmp_write_table = $g5['write_prefix'].$row['bo_table'];
$row2 = sql_fetch(" select sum(wr_hit) as total from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
$t_view += $row2['total'];
}
echo number_format($t_view);
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4429 | ||
| 744 |
|
8년 전 | 6221 | |
| 743 | 8년 전 | 6042 | ||
| 742 | 8년 전 | 6924 | ||
| 741 | 8년 전 | 18906 | ||
| 740 |
|
8년 전 | 10266 | |
| 739 | 8년 전 | 15583 | ||
| 738 | 8년 전 | 4078 | ||
| 737 | 8년 전 | 4525 | ||
| 736 | 8년 전 | 4463 | ||
| 735 | 8년 전 | 10762 | ||
| 734 | 8년 전 | 8421 | ||
| 733 | 8년 전 | 6431 | ||
| 732 | 8년 전 | 10170 | ||
| 731 | 8년 전 | 12320 | ||
| 730 | 8년 전 | 9619 | ||
| 729 | 8년 전 | 6744 | ||
| 728 | 8년 전 | 6445 | ||
| 727 | 8년 전 | 6959 | ||
| 726 |
EunjiChoi
|
8년 전 | 4554 | |
| 725 | 8년 전 | 4940 | ||
| 724 | 8년 전 | 7162 | ||
| 723 | 8년 전 | 7177 | ||
| 722 | 8년 전 | 7052 | ||
| 721 | 8년 전 | 5789 | ||
| 720 | 8년 전 | 14050 | ||
| 719 | 8년 전 | 8946 | ||
| 718 | 8년 전 | 5888 | ||
| 717 | 8년 전 | 8113 | ||
| 716 | 8년 전 | 5906 | ||
| 715 | 8년 전 | 4782 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기