<?php require_once('../auth/auth.php');
if (isset($_POST['newcom'])) {
    $navber=    $_POST['navber'];
    $sub_navber= $_POST['sub_navber'];
    $problem_type= $_POST['problem_type'];
    $p_start_date= $_POST['p_start_date'];
    $p_note= $_POST['p_note'];
    $type= $_POST['type'];
    $date= $_POST['date'];
    mysqli_query($conn,"INSERT INTO complain(`coid`, `bid`, `brid`, `navber`, `sub_navber`, `problem_type`, `p_start_date`, `p_note`, `type`, `status`, `date`, `userid`) 
            VALUES ('$coid','$bid','$brid','$navber','$sub_navber','$problem_type','$p_start_date','$p_note','$type','Pending','$date','$uid')")or die(mysqli_error($conn));
}       
?>