일반페이지에서 회원리스트를 보여주고 싶은데요..

일반페이지에서 회원리스트를 보여주고 싶은데요..

QA

일반페이지에서 회원리스트를 보여주고 싶은데요..

답변 3

본문

회원이름,이메일,전화번호만 뿌려주고 싶은데요

 

방법을 모르겠습니다.ㅜㅜ

 

 <table class="table_basic mt10">
     <colgroup>
     <col style="width:100px;">
     <col style="width:100px;">
     <col><col>
     <tr>
      <th>이름</th>
      <th>소속</th>
      <th>이메일</th>
      <th>연락처</th>
     </tr>
     <tr>
      <td><?php echo get_text($row['mb_name']); ?></td>
      <td><?php echo get_text($row['mb_1']); ?></td>
      <td><?php echo get_text($row['mb_hp']); ?></td>
      <td><?php echo get_text($row['mb_email']); ?></td>
     </tr>
    </table>

이 질문에 댓글 쓰기 :

답변 3

$member[mb_name] 

등과같이 보통 $member 변수에 다들어 있습니다.

또는 $mb 변수등도 확인가능할때 있습니다. 두변수사용하세요.

$member[mb_name];   //이름

$member[mb_hp];   //휴대폰

$member[mb_email];  //이메일

<?php
include_once('./_common.php');

$sql = " select * from {$g5['member_table']} order by mb_no ";
$result = sql_query($sql);

?>

<table class="table">
   <thead>
  <tr>
  <th scope="col">성명</th>
  <th scope="col">휴대폰</th>
  <th scope="col">E-mail</th>
  </tr>
  </thead>
  <tbody>
 <?php
  for ($i=0; $row=sql_fetch_array($result); $i++) {
  ?>

  <tr>
  <td><?php echo $row['mb_name'];?></td>
  <td><?php echo $row['mb_hp'];?></td>
   <td><?php echo $row['mb_email'];?></td>
   </tr>

     <?php
        }
     ?>
  </tbody>
</table>

 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 5
© SIRSOFT
현재 페이지 제일 처음으로