我收到以下错误消息,但我不认为sql语法错误:您的SQL语法中有错误;检查与您的MariaDB服务器版本对应的手册,以便在第1行'* FROM registration
WHERE email =''和password ='''附近使用正确的语法
// if there's no error, continue to delete
if( !$error ){
$query = "DELETE * FROM `registration` WHERE email='$email' and password='$pass'";
$result = mysqli_query($conn, $query) or die(mysqli_error($conn));
$count = mysqli_affected_rows($result);
if (mysql_affected_rows() == 1){
if (isset($_POST['btn-delete'])){
header("location:main.php");
}
}else{
$fmsg = "";
}
}