include("../conn/conn.php"); $array = implode(",",$_POST['flags']); $query = "delete from tbl_user where ID in ($array)"; $sql = mysql_query($query); if($sql){ echo"<script>alert('删除成功');window.location.href='show_user.php'</script>"; }else{ echo "<script>alert('删除失败');window.location.href='show_user.php'</script>";
}批量删除不用while,另外可以再js中实现跳转
5001

被折叠的 条评论
为什么被折叠?



