게시판에 글을 추천한 사람 아이디를 추출하고 싶습니다 어떻게 해야할까요? ㅜㅜ
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 8개
참조하셔요
for구문 안에 넣으라는데 정확히 어디에 넣어야 할지 모르겠습니다 ㅜㅜ
<? //추천인 아이디 출력(비추천은 good -> nogood)
$sql = " select * from $g4[board_good_table] where bo_table ='$bo_table' and wr_id='{$list[$i][wr_id]}' and bg_flag='good' ";
$result = sql_query($sql);
while($row = sql_fetch_array($result)){
echo $row[mb_id]."|";
}
?>
$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]."|";
}
?>
이렇게 하면 아이디값은 나오지 않나요?