Here's my code on inserting data. I'm trying to insert data to two tables, which is the donor and donation, but suddenly it won't show in my database, I can't figure out what is the problem, please help.
<!DOCTYPE html>
<html>
<head>
<?php
  include "queries.php";
  include "header.php";
  ?>
</head>
        <body>
        <?php
if(isset($_POST['submit'])){
  $donor_type = $_POST['donor_type'];
  $donor_type = $_POST['donor_type'];
  if(empty($donor_type)){
      $errordonor_type="not existing";
    }
  $con_num = $_POST['con_num'];
  if(empty($con_num)){
    $errorcon_num="please input your number";
    $name1 = $_POST['name1'];
    if(empty($name1)){
    $errorname1="please enter your name";}
  }
  $categor_type = $_POST['categor_type'];
  if(empty($categor_type)){
    $categor_type="not existing";}
    $location = $_POST['location'];
  if(empty($location)){
    $errorlocation="please enter your location";}
    $date = $_POST['date'];
  if(empty($date)){
    $errordate="not exist";}
    $amount = $_POST['amount'];
  if(empty($amount)){
    $erroramount="please specefic amount";}
  $withdrawal = $_POST['withdrawal'];
  if(empty($withdrawal)){
    $errorwithdrawal="please choose";}
if(!isset($errordonor_type) || !isset($errorcon_num) || !isset($errorname1) || !isset($errorcategor_type) || !isset($errorlocation)|| !isset($errordate)||!isset($erroramount)|| !isset($errorwithdrawal));
{
$insert=mysqli_query($conn,"insert into donor(donor_type, con_num, name1, categor_type, location, date,  amount, withdrawal)values('$donor_type','$con_num','$name1','$categor_type','$location','$date','$amount','$withdrawal')");
echo "<script>alert ('created account');window.location.href='login.php'</script>";
}
}
  
?>
 
     
    