亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

?? ??? ???? ??

?? ?? ????? ??? ?? ?? ? ??? ??/?? ?? ??? ??????. ?? ???? ?? ??? ?? ??? ???? ??? ?? ???????.

32.png

?? ??? ???? ?? ????? ???? ?? ???? id? ??, ?? ID? ???? ?????? ????? ? ID? ?? ??? ???? ????. SQL?? ?? ? ?? ??? ?????.

?? delete.php ??

? ???? list.php?? ?? ID? ??? ??? ? ?????. list.php?? ??? ?? ???? $rows["id"]? ?? ??? while ??? ?? ?????.

<td>
    <div class="button-group">
        <a class="button border-main" href="#"><span class="icon-edit"></span>修 改</a>
        <a class="button border-red" href="delete.php?id=<?php echo $rows["id"]?>" onclick="return del(1,1,1)">
            <span class="icon-trash-o"></span>刪 除
        </a>
    </div>
</td>

delete.php ??, ?????? ?? ?? config.php? ???? id ?? ???? ???????? ? ???? ?????.

<?php
header("content-type:text/html;charset=utf-8");
include("config.php");

$id = isset($_GET['id'])?$_GET['id']:"";
$sql = "delete from list where id = '$id'";
//echo $sql;
$rel = mysqli_query($link,$sql);
if($rel){
   echo "<script>alert('刪除成功');window.location.href='list.php'</script>";
}else{
   echo "<script>alert('刪除失敗');window.location.href='list.php'</script>";
}
?>



???? ??
||
<?php header("content-type:text/html;charset=utf-8"); include("config.php"); $id = isset($_GET['id'])?$_GET['id']:""; $sql = "delete from list where id = '$id'"; //echo $sql; $rel = mysqli_query($link,$sql); if($rel){ echo "<script>alert('刪除成功');window.location.href='list.php'</script>"; }else{ //echo "<script>alert('刪除失敗');window.location.href='list.php'</script>"; } ?>