PHP example - How to delete an entire MySQL database?
PHP - How to delete an entire MySQL database?
The mysql_drop_db should be used for this purpose.
The function syntax is as follows:
bool mysql_drop_db ( string database_name)
the function returns TRUE on success, FALSE on failure.