我正在尝试从数据库中删除数据并且代码不会丢失任何错误但数据未被删除
<?php
ini_set('display_errors', 1);
require('../../../../includes/conn.inc.php');
require('../includes/functions.inc.php');
// sanitize user variables
$sFixtureID = safeInt($_POST['fixtureID']);
// prepare SQL
$stmt = $mysqli->prepare("DELETE FROM matchFixtures WHERE fixtureID = ?");
$stmt->bind_param('i', $sFixtureID);
$stmt->execute();
$stmt->close();
header("Location: ../../protected_page.php");
// redirect browser
exit;
// make sure no other code executed
?>