내글 게시글 댓글 총갯수 정보
내글 게시글 댓글 총갯수본문
$sql = " select count(*) as cnt from $g4[board_new_table] where mb_id = '$mb_id' and wr_id = wr_parent ";
$row = sql_fetch($sql);
$post_cnt = $row['cnt']; //mb_id가 쓴 게시글 갯수
// 내가 쓴 전체 코멘트 (new 테이블 기록)
$sql2 = " select count(*) as cnt from $g4[board_new_table] where mb_id = '$mb_id' and wr_id != wr_parent ";
$row2 = sql_fetch($sql2);
$cmt_cnt = $row2['cnt']; // mb_id가 쓴 댓글 갯수
**************
게시글 <?=$post_cnt?> 개
댓글 <?=$cmt_cnt?> 개
이렇게 profile.skin.php에 넣어서 사용하고 있는데요
로그인창에서 표시 되게 하려고
outlogin.skin.2.php에 사용하려니 적용했는데... 안되더라구요
뭐가 잘못된 걸까요...
$row = sql_fetch($sql);
$post_cnt = $row['cnt']; //mb_id가 쓴 게시글 갯수
// 내가 쓴 전체 코멘트 (new 테이블 기록)
$sql2 = " select count(*) as cnt from $g4[board_new_table] where mb_id = '$mb_id' and wr_id != wr_parent ";
$row2 = sql_fetch($sql2);
$cmt_cnt = $row2['cnt']; // mb_id가 쓴 댓글 갯수
**************
게시글 <?=$post_cnt?> 개
댓글 <?=$cmt_cnt?> 개
이렇게 profile.skin.php에 넣어서 사용하고 있는데요
로그인창에서 표시 되게 하려고
outlogin.skin.2.php에 사용하려니 적용했는데... 안되더라구요
뭐가 잘못된 걸까요...
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '282117' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php