Code-Samples/php/Php-dropdb.php Using MySQLi to Drop MySQL Table connect_error) { die("Connection not established: " . $connection->connect_error); } // Dropping Database $query = "DROP DATABASE Patient"; if ($connection->query($query) === TRUE) { echo "Database dropped successfuly."; } else { echo "Unable to drop database " . $connection->error; } $connection->close(); ?>