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 팁자료실

+
제목 글쓴이 날짜 조회
10년 전 조회 6,589
10년 전 조회 6,753
10년 전 조회 5,835
10년 전 조회 7,703
10년 전 조회 7,261
10년 전 조회 1만
10년 전 조회 2.5만
10년 전 조회 1.4만
10년 전 조회 8,152
10년 전 조회 1만
10년 전 조회 9,069
10년 전 조회 9,681
10년 전 조회 1.8만
10년 전 조회 7,953
10년 전 조회 4,863
10년 전 조회 7,843
10년 전 조회 8,629
10년 전 조회 1.6만
10년 전 조회 7,988
11년 전 조회 1만
11년 전 조회 1.1만
11년 전 조회 7,641
11년 전 조회 6,277
11년 전 조회 1.2만
11년 전 조회 8,957
11년 전 조회 7,520
11년 전 조회 1만
11년 전 조회 8,405
11년 전 조회 1.8만
11년 전 조회 1.6만