m

게시물 읽음 전체 합산

//게시물뷰
$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 팁자료실

+
제목 글쓴이 날짜 조회
11년 전 조회 6,775
11년 전 조회 6,931
11년 전 조회 6,009
11년 전 조회 7,882
11년 전 조회 7,439
11년 전 조회 1만
11년 전 조회 2.5만
11년 전 조회 1.4만
11년 전 조회 8,340
11년 전 조회 1만
11년 전 조회 9,221
11년 전 조회 9,847
11년 전 조회 1.8만
11년 전 조회 8,112
11년 전 조회 5,037
11년 전 조회 8,001
11년 전 조회 8,783
11년 전 조회 1.6만
11년 전 조회 8,170
11년 전 조회 1만
11년 전 조회 1.1만
11년 전 조회 7,795
11년 전 조회 6,430
11년 전 조회 1.2만
11년 전 조회 9,120
11년 전 조회 7,685
11년 전 조회 1.1만
11년 전 조회 8,549
11년 전 조회 1.8만
11년 전 조회 1.6만