我编写了一个DELETE查询,但是它没有删除数据库中的行。
<?php
include("header.php");
include("../auth_admin.php");
include("../dbConnect.php");
try {
$r = $_POST['opid'];
$conn =connect();
$query = mysqli_query($conn, "DELETE FROM mc_owner_balance WHERE Operator_Id = $r");
close($conn);
} catch (Exception $e) {
close($conn);
errorPage();
}
include("footer.php");
?>
我要删除数据库中的行。