채택완료

아이디를 체크하여, 이름/연락처 등을 가져오고싶습니다.

안녕하세요.

추천/비추천기능을 좀 꾸미고있습니다.. [재질문이에요 ㅠ]

Copy
<table class="go_member_list">

            <thead>

              <col style="width:20%">

              <col style="width:60%">

              <col style="width:20%">

            </thead>

            <tr>

              <th>아이디</th>

              <th>항목</th>

              <th>날짜</th>

            </tr>

            <? //추천인 아이디 출력(비추천은 good -> nogood)

                $sql = " select * from $g5[board_good_table] where bo_table ='$bo_table' and wr_id='{$view[wr_id]}' and bg_flag='good' ";

                $result = sql_query($sql);

                while($row = sql_fetch_array($result)){

            ?>

            <tr>

              <td>

                <?php echo $row['mb_id']; ?>

              </td>

              <td>

                자차

              </td>

              <td>

                <?php echo $row['bg_datetime']; ?>

              </td>

            </tr>

            <?php } ?>

          </table>

이렇게 하여 모두 성공적으로 표시가 됩니다만, g5_board_good 에는 아이디 / 연락처등이 저장되지 않아서요!

아이디가 만약 1111으로 호출됐다면,

1111인 회원의 이름/연락처 등을 가져오게 하고싶습니다.

방법이있나요~? ㅠ 초보라.. 도움 기다립니다!

|

답변 1개

채택된 답변
+20 포인트

id정보를 가져와서

$user = get_member($row['mb_id']);

echo $user[필드명];

이렇게 하면 회원정보를 가져오실수 있습니다.

답변을 작성하려면 로그인이 필요합니다.