PHP ?? ?? ???? ????: ??? ??
?? ??? ?? ????
?? ????? ?? ???? deluser.php? ???? ??? ?? ?? ?? ????.
???? ???? ??? ???????
<?php //刪除管理員部分代碼 require_once('conn.php'); $id = $_GET['id']; $sql = "DELETE from user where id='$id'"; $res = mysql_query($sql); if($res){ echo "<script>alert('刪除管理員成功');location.href='user.php'</script>"; }else{ echo "<script>alert('刪除管理員失敗');location.href='user.php'</script>"; } ?>
?? ??????? ????? ?? ?? ???? id? ?????. id? ???? ??
? ??? ?? ??? ???????