게시물 읽음 전체 합산
//게시물뷰
$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년 전 | 4417 | ||
| 264 | 11년 전 | 6008 | ||
| 263 | 11년 전 | 8290 | ||
| 262 | 11년 전 | 8142 | ||
| 261 |
|
11년 전 | 6359 | |
| 260 | 11년 전 | 6241 | ||
| 259 | 11년 전 | 7887 | ||
| 258 | 11년 전 | 10763 | ||
| 257 |
cutecute
|
11년 전 | 12043 | |
| 256 | 11년 전 | 9908 | ||
| 255 | 11년 전 | 11587 | ||
| 254 | 11년 전 | 7819 | ||
| 253 | 11년 전 | 12134 | ||
| 252 |
|
11년 전 | 5094 | |
| 251 | 11년 전 | 7798 | ||
| 250 | 11년 전 | 7660 | ||
| 249 | 11년 전 | 5590 | ||
| 248 | 11년 전 | 14327 | ||
| 247 | 11년 전 | 11544 | ||
| 246 | 11년 전 | 6419 | ||
| 245 | 11년 전 | 6847 | ||
| 244 | 11년 전 | 8969 | ||
| 243 | 11년 전 | 8146 | ||
| 242 |
끝없는사랑
|
11년 전 | 8490 | |
| 241 | 11년 전 | 13268 | ||
| 240 | 11년 전 | 5575 | ||
| 239 | 11년 전 | 12645 | ||
| 238 | 11년 전 | 8059 | ||
| 237 | 11년 전 | 7617 | ||
| 236 | 11년 전 | 8407 | ||
| 235 |
미라클OnAir
|
11년 전 | 8085 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기