admin/index.php 에 특정게시판 글 불러올려면..

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
admin/index.php 에 특정게시판 글 불러올려면..

QA

admin/index.php 에 특정게시판 글 불러올려면..

본문

<section>

    <h2>최근상담신청</h2>

<div class="tbl_head01 tbl_wrap">

    <table>

    <caption>최근상담신청</caption>

    <thead>

    <tr>

<th scope="col">이름</th>

<th scope="col">전화번호</th>

<th scope="col">아이피</th>

<th scope="col">관심상품구분</th>

<th scope="col">희망금액</th>

<th scope="col">상태</th>

<th scope="col">상담사</th>

        <th scope="col">접수일</th>

      

    </tr>

    </thead>

    <tbody>

    <?php

    $k = 0;

    for ($i=0; $row=sql_fetch_array($result); $i++) {

 

$row['wr_subject'] = conv_subject($row['wr_subject'], 40, '…');

 

// 당일인 경우 시간으로 표시함

$row['datetime'] = substr($row['wr_datetime'],0,10);

$row['datetime2'] = $row['wr_datetime'];

if ($row['datetime'] == G5_TIME_YMD)

$row['datetime2'] = substr($row['datetime2'],11,5);

else

$row['datetime2'] = substr($row['datetime2'],5,5);

 

        $list_num = ($total_count - ($page - 1) * $list_page_rows) - $k;

 

        $bg = 'bg'.($i%2);

    ?>

 

 

 

 

    <tr class="<?php echo $bg; ?>">

        

<td class="td_wr6"><?php echo $row['wr_6'] ?></td>

<td class="td_wr7"><?php echo $row['wr_7'] ?>-<?php echo $row['wr_16'] ?>-<?php echo $row['wr_17'] ?></td>

<td class="td_wrip"><?php echo $row['wr_ip'] ?></td>

        <td class="td_wr8"><?php echo $row['wr_8'] ?></td>

        <td class="td_wr9"><?php echo $row['wr_9'] ?> 만원</td>

<td class="td_wr4"><?php echo $row['wr_4'] ? $row['wr_4'] : '상담대기'; ?></td>

<td class="td_wr5"><?php echo $row['wr_5'] ?></td>

        <td class="td_subject" style="display:none;">

<?if ($is_category && $row['ca_name']) { echo "[".$row['ca_name']."]"; } ?>

<?php echo $row['wr_subject'] ?>

</td>

 

        <td class="td_date">

            <?php echo $row['wr_datetime'] ?>

        </td>

       

        <td class="td_mngsmall">

            <a href="./counsel_form.php?w=u&wr_id=<?php echo $row['wr_id']; ?>&<?php echo $qstr; ?>"><span class="sound_only"><?php echo get_text($row['wr_subject']); ?> </span>수정</a>

        </td>

    </tr>

 

    <?php

        $k++;

    }

 

    if ($i == 0) {

        echo '<tr><td colspan="11" class="empty_table">자료가 없습니다.</td></tr>';

    }

    ?>

    </tbody>

    </table>

</div>

 

</section>

 

 

이렇게되어있는데 데이터가 불러지지 않아요 자료가 있는데 자료가없습니다로 나옵니다~ㅠ 

도와주세요 

이 질문에 댓글 쓰기 :

답변 2

$result 로 불러올 결과물의 쿼리코드를 올려주셔야 하겠네요.

쿼리가 잘못되어 데이터를 읽어오지 못하는 상태입니다. 

$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
$result = sql_query($sql);
 for ($i=0; $row=sql_fetch_array($result); $i++)

요런거인가여 특정게시판  글 불러오는 코드 알려주실수없나요?//

답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT