===== Syntax =====
bool mysql_drop_db(string $database, [, resource $res])
**This function is deprecated and should no longer be used**
//(PHP 4, PHP 5)//
^ $database | The name of the database to drop from the MySQL server. |
^ $res | The MySQL database connection resource to use for the operation. |
^ RETURNS | **True** if the database was successfully dropped from the server, **False** otherwise. |
===== What it Does =====
Attempts to drop (delete) an entire database from the database server.
**This function is deprecated and should no longer be used**
Instead, you should use the standard [[mysql_query]] command to issue a ''DROP DATABASE'' command.
===== Example =====
// open the mysql resource
$res = mysql_connect($server, $user, $pass);
// drop the 'system' database from the MySQL server
if (mysql_drop_db('system', $res))
echo 'The database was successfully dropped';