추천인 출력 아이디를 이름으로~
<? //추천인 아이디 출력(비추천은 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].",";
}
?>
추천인 아이디 출력하는데
아이디로 출력이 되더라고요~
echo 부분에서 mb_id =>mb_name
이런식으로 바꿔도 안되고
$list[$i][wr_id]}
이부분바꿔도 안되고
어떻게 해야되나요?ㅠㅠ
$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].",";
}
?>
추천인 아이디 출력하는데
아이디로 출력이 되더라고요~
echo 부분에서 mb_id =>mb_name
이런식으로 바꿔도 안되고
$list[$i][wr_id]}
이부분바꿔도 안되고
어떻게 해야되나요?ㅠㅠ
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 4개
SELECT mb_name FROM `g4_member` WHERE mb_id = '$row[mb_id]'
소스 코딩좀.ㅠㅠ 가능 하신가요?ㅠㅠ