<?php $db=new MySQLi("localhost","账号","密码","数据库名"); $sql="delete from 表名 where 条件"; $db->query($sql); header("location:文件名"); //返回哪个文件 ?>