I'm getting the following two errors when I run the below code in my browser, the code itself seems to work as I can login and register and add to the database but still the errors persist.

The code is:
<?php 
   require "conn.php";
   $doctor_number = $_POST["doctor_number"];
   $doctor_name = $_POST["doctor_name"];
   $email = $_POST["email"];
   $password = $_POST["password"];
   $mysql_qry = "insert into doctors(doctor_number, doctor_name, email, password) values ('$doctor_number', '$doctor_name', '$email', '$password')";
   $result = mysqli_query($conn ,$mysql_qry);
   if($conn->query($mysql_qry) === TRUE){
       echo "Insert Successful";
   }
   else{
       echo "Error: " . $mysql_qry . "<br>" . $conn->error;
   }
   $conn->close();
?>
<?PHP
   require "conn.php";
   $email = $_POST["email"];
   $password = $_POST["password"];
   $mysql_qry = "select * from doctors where email like '$email' and password like '$password'";
   $result = mysqli_query($conn ,$mysql_qry);
   if(mysqli_num_rows($result) > 0){
       echo "Login success";
   }
   else{
       echo "Login not successful";
   }
?>

