게시물 읽음 전체 합산
//게시물뷰
$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년 전 | 4402 | ||
| 2544 | 11개월 전 | 941 | ||
| 2543 | 11개월 전 | 842 | ||
| 2542 | 11개월 전 | 744 | ||
| 2541 | 11개월 전 | 772 | ||
| 2540 | 11개월 전 | 1183 | ||
| 2539 | 11개월 전 | 1019 | ||
| 2538 | 12개월 전 | 1002 | ||
| 2537 |
|
12개월 전 | 841 | |
| 2536 | 1년 전 | 1227 | ||
| 2535 |
|
1년 전 | 779 | |
| 2534 |
|
1년 전 | 884 | |
| 2533 |
거북이와두루미
|
1년 전 | 1659 | |
| 2532 | 1년 전 | 793 | ||
| 2531 | 1년 전 | 674 | ||
| 2530 | 1년 전 | 720 | ||
| 2529 | 1년 전 | 1062 | ||
| 2528 |
|
1년 전 | 554 | |
| 2527 | 1년 전 | 1132 | ||
| 2526 | 1년 전 | 744 | ||
| 2525 | 1년 전 | 1107 | ||
| 2524 | 1년 전 | 911 | ||
| 2523 | 1년 전 | 1334 | ||
| 2522 | 1년 전 | 957 | ||
| 2521 | 1년 전 | 1309 | ||
| 2520 | 1년 전 | 1185 | ||
| 2519 | 1년 전 | 1059 | ||
| 2518 |
Lemios
|
1년 전 | 866 | |
| 2517 | 1년 전 | 955 | ||
| 2516 | 1년 전 | 1701 | ||
| 2515 | 1년 전 | 845 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기