덧붙임 검색을 만드려합니다.
form method="get"으로 db를 가져와서
Copy
<table id="table" border="1">
<?php
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{?>
<tr>
<th>주문번호</th>
<td><?php echo $row['ship_no']?></td>
</tr>
<tr>
<th>주문날짜</th>
<td><?php echo $row['ship_date']?></td>
</tr>
<tr>
<th>고객명</th>
<td><?php echo $row['buyer']?></td>
</tr>
<tr>
</tr>
<?php }
if ($i == 0){
echo '<tr><td class="empty_table">자료가 없습니다.</td></tr>';}
?>
</table>
위에 방식으로 검색값이 나오도록 하였습니다.
검색값을 유지시키고 다음 검색값이 아래 붙도록 하려면 어떻게 해야될까요?
조언부탁드립니다...
|
답변 1개 / 댓글 1개
답변을 작성하려면 로그인이 필요합니다.