Warning: Undefined array key "txtPhoneNo" in D:\xampp\htdocs\portal\login-form\otpvalied.php on line 38

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and active=1' at line 1 in D:\xampp\htdocs\portal\dblayer.php:319 Stack trace: #0 D:\xampp\htdocs\portal\dblayer.php(319): mysqli_query(Object(mysqli), 'SELECT teacher_...') #1 D:\xampp\htdocs\portal\login-form\otpvalied.php(47): sql_db->sql_query('SELECT teacher_...') #2 {main} thrown in D:\xampp\htdocs\portal\dblayer.php on line 319