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不爲空。不過到了database..Pls沒有影響幫助查詢確實運行但對數據庫沒有影響
檢查什麼是你$臨時varible – LOKESH
什麼是' $ temp'的價值? – RubahMalam
$ temp ='2015-11-14 12:08:51 pm' –