게시판에 글을 추천한 사람 아이디 추출 정보
게시판에 글을 추천한 사람 아이디 추출본문
게시판에 글을 추천한 사람 아이디 추출하는데는 성공을했는데 아이디 말고 별명으로 추출하고 싶은데 그건 어떻게 하나요?
<? //추천인 아이디 출력(비추천은 good -> nogood)
$sql = " select * from $g4[board_good_table] where bo_table ='$bo_table' and wr_id='$wr_id' and bg_flag='good' order by bg_id desc ";
$result = sql_query($sql);
while($row = sql_fetch_array($result)){
echo $row[mb_id]."|";
}
?>
현재 이걸 사용하고 있습니다 어디를 어떻게 수정해야할지 꼭좀 해결 해주세요 초보라 잘모릅니다 ㅜㅜ
<? //추천인 아이디 출력(비추천은 good -> nogood)
$sql = " select * from $g4[board_good_table] where bo_table ='$bo_table' and wr_id='$wr_id' and bg_flag='good' order by bg_id desc ";
$result = sql_query($sql);
while($row = sql_fetch_array($result)){
echo $row[mb_id]."|";
}
?>
현재 이걸 사용하고 있습니다 어디를 어떻게 수정해야할지 꼭좀 해결 해주세요 초보라 잘모릅니다 ㅜㅜ
( 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 = '283167' 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