게시물 읽음 전체 합산
//게시물뷰
$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년 전 | 4427 | ||
| 1014 | 7년 전 | 6938 | ||
| 1013 | 7년 전 | 3937 | ||
| 1012 | 7년 전 | 5030 | ||
| 1011 | 7년 전 | 5425 | ||
| 1010 | 7년 전 | 4479 | ||
| 1009 | 7년 전 | 3788 | ||
| 1008 |
|
7년 전 | 5008 | |
| 1007 |
|
7년 전 | 5738 | |
| 1006 | 7년 전 | 18329 | ||
| 1005 | 7년 전 | 6315 | ||
| 1004 |
|
7년 전 | 4770 | |
| 1003 | 7년 전 | 9425 | ||
| 1002 | 7년 전 | 10500 | ||
| 1001 | 7년 전 | 3990 | ||
| 1000 | 7년 전 | 5690 | ||
| 999 | 7년 전 | 8997 | ||
| 998 | 7년 전 | 4239 | ||
| 997 | 7년 전 | 8351 | ||
| 996 | 7년 전 | 6623 | ||
| 995 | 7년 전 | 5154 | ||
| 994 | 7년 전 | 4518 | ||
| 993 |
|
7년 전 | 7691 | |
| 992 |
onlymilk47
|
7년 전 | 7891 | |
| 991 | 7년 전 | 4928 | ||
| 990 | 7년 전 | 5770 | ||
| 989 | 7년 전 | 4449 | ||
| 988 | 7년 전 | 4794 | ||
| 987 | 7년 전 | 8552 | ||
| 986 | 7년 전 | 5387 | ||
| 985 | 7년 전 | 7481 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기