cnt, cf_page_rows 땀표 정리 및 #47의 1에 따른 처리

This commit is contained in:
whitedot
2012-11-16 10:39:15 +09:00
parent 1149d86cf7
commit 09bc4e69b2
24 changed files with 48 additions and 47 deletions

View File

@ -190,12 +190,12 @@ if ($w == '') {
// 게시판의 글 수
$sql = " select count(*) as cnt from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 0 ";
$row = sql_fetch($sql);
$bo_count_write = $row['cnt'];
$bo_count_write = $row[cnt];
// 게시판의 코멘트 수
$sql = " select count(*) as cnt from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 1 ";
$row = sql_fetch($sql);
$bo_count_comment = $row['cnt'];
$bo_count_comment = $row[cnt];
// 글수 조정
if ($proc_count) {
@ -207,7 +207,7 @@ if ($w == '') {
$sql2 = " select count(*) as cnt from {$g4['write_prefix']}$bo_table where wr_parent = '{$row['wr_id']}' and wr_is_comment = 1 ";
$row2 = sql_fetch($sql2);
sql_query(" update {$g4['write_prefix']}{$bo_table} set wr_comment = '{$row2['cnt']}' where wr_id = '{$row['wr_id']}' ");
sql_query(" update {$g4['write_prefix']}{$bo_table} set wr_comment = '{$row2[cnt]}' where wr_id = '{$row['wr_id']}' ");
}
}