Code-Samples/php/Php-delete2.php Using DElETE clause in MySQLi connect_error) { die("Connection not established: " . $connection->connect_error); } $query = "Use Hospital;"; $connection->query($query); // Implementing DELETE query $query = "DELETE FROM Patient ". "WHERE patient_age = 27"; if ($connection->query($query) === TRUE) { echo "Record DELETED successfuly."; } else { echo "Unable to DELETE record " . $connection->error; } $connection->close(); ?>