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