Here is the given error:
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 '
Warning: Undefined variable $id in C:\xampp\htdocs\food-or...' at line 1 in C:\xampp\htdocs\food-order\Backend\update-password.php:53 Stack trace: #0 C:\xampp\htdocs\food-order\Backend\update-password.php(53): mysqli_query(Object(mysqli), 'SELECT* FROM tb...') #1 {main} thrown in C:\xampp\htdocs\food-order\Backend\update-password.php on line 53
And here is the line 53 there seems to be an error in:
$sql = "SELECT* FROM tbl_admin WHERE id=$id AND password='$current_password'";//line51
//Execute the Query //line52
$res = mysqli_query($conn, $sql); //line53
if ($res == true){ //line54