Why I am getting an error like this if I have my ExamineeID as Auto_Increment?
Uncaught mysqli_sql_exception: Column ‘ExamineeID’ cannot be null
$sqlhonor = "SELECT Honor1, Honor2, Honor3, Honor4 From honor Where Honor1 = ? And Honor2 = ? And Honor3 = ? And Honor4 = ? ";
if ($stmthonor = $conn->prepare($sqlhonor)) {
$INSERThonor = "INSERT INTO honor (Honor1,Honor2,Honor3,Honor4, ExamineeID) values (?,?,?,?,?)";
$stmthonor -> bind_param("ssss", $Honor1,$Honor2,$Honor3,$Honor4);
$stmthonor -> execute();
$stmthonor -> bind_result($Honor1,$Honor2,$Honor3,$Honor4);
$stmthonor -> store_result();
$rnum = $stmthonor -> num_rows;
if ($rnum == 0 ) {
$stmthonor->close();
$stmthonor = $conn -> prepare($INSERThonor);
$stmthonor -> bind_param ("ssssi", $Honor1, $Honor2, $Honor3, $Honor4, $ExamineeID);
$stmthonor -> execute();
}
}