누르면 DB삭제 버튼 질문
본문
<?php
include_once('./_common.php');
if ($is_guest)
alert_close('회원만 조회하실 수 있습니다.');
$g5['title'] = $member['mb_name'].' 님의 재입고 SMS 알림 신청 내역';
include_once(G5_PATH.'/head.sub.php');
$sql = " select a.ss_id, a.it_id, a.ss_mbid, b.it_name
from {$g5['g5_shop_item_stocksms_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
where a.ss_mbid IN ( '{$member['mb_id']}', '전체회원' )
order by a.ss_id ";
$result = sql_query($sql);
?>
<!-- SMS 내역 시작 { -->
<div id="coupon" class="new_win">
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
<ul>
<?php
$cp_count = 0;
for($i=0; $row=sql_fetch_array($result); $i++) {
$cp_count++;
?>
<li>
<div class="cou_top">
<span class="cou_tit"><?php echo $row['it_id']; ?></span>
<span class="cou_tit" style="margin-left:30px;"><?php echo $row['it_name']; ?></span>
<span class="cou_pri">삭제</span>
</div>
</li>
<?php
}
if(!$cp_count)
echo '<li class="empty_li">신청하신 SMS 알림 내역이 없습니다.</li>';
?>
</ul>
<button type="button" onclick="window.close();" class="btn_close">창닫기</button>
</div>
<?php
include_once(G5_PATH.'/tail.sub.php');
?>
이렇게 SMS 신청 내역이 나오는 페이지를 하나 만들었는데요
여기서 저 삭제를 누르면 그 줄만 DB에서 삭제를 하고 싶은데 어떻게 하면 좋을까요? ㅠㅠ
!-->
답변을 작성하시기 전에 로그인 해주세요.