게시판에 글을 추천한 사람 아이디 추출 정보
게시판에 글을 추천한 사람 아이디 추출본문
게시판에 글을 추천한 사람 아이디를 추출하고 싶습니다 어떻게 해야할까요? ㅜㅜ
댓글 전체
우선 답변 감사드립니다. 답변주신 링크에 코드로 삽입해봤는데 아무것도 나타나지가 않더군요 저게 게시물을 추천한 사람 아이디가 나오게 하는 코드가 맞나요??
현재 게시판은 그누보드4 기본 쓰고있습니다.
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]."|";
}
?>
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]."|";
}
?>
<? //추천인 아이디 출력(비추천은 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]."|";
}
?>
이렇게 하면 아이디값은 나오지 않나요?
$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]."|";
}
?>
이렇게 하면 아이디값은 나오지 않나요?
view.skin에 삽입시켰는데 안나오더라구요 ㅜㅜ
제가 지금 해봤는데 잘 나오는데요; 아이디값..
아이디 말고 별명이 나오게 하려면 name으로 해야하나요?
아 이제 나오네요 감사드립니다 ^^