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>
이렇게되어있는데 데이터가 불러지지 않아요 자료가 있는데 자료가없습니다로 나옵니다~ㅠ
도와주세요