include '../php_script/connectDB.php';
$temp=$_POST['resitID'];
$query="DELETE FROM resit
WHERE resitid='$temp'";
$result=mysqli_query($conn,$query);
if($result)
{
$_SESSION['error'] = "Resit deleted successfully.";
header('location: ./tutor_delete_page.php');
}
查询确实运行了,$ temp不为空。但对数据库没有影响。请帮忙
答案 0 :(得分:0)
$query="DELETE FROM resit
WHERE resitid=".$temp;
答案 1 :(得分:0)
尝试:
$query = "DELETE FROM reset WHERE resetid='".$temp."'");
希望这有帮助,
苏海尔