6年前
<?php
$id=$_GET['id'];
$conn= mysqli_connect('localhost','root','root','study');
$sql= "delete from stu where id='$id'";
$result= mysqli_query($conn,$sql);
if($result){
echo "<script>alert('删除成功')</script>";
}else{
echo "<script>alert('删除失败')</script>";
}
?>
0