Deleting Database in MySql using PHP:
<?
$sql = “DROP DATABASE testDB2”;
$connection = @mysql_connect(“localhost”,”rot”,”root”)or die(mysql_error());
$result = @mysql_query($sql,$connection) or die(mysql_error());
if ($result) {
$msg =”<P>Database has been deleted!</P>”;
}
?>
<HTML>
<HEAD>
<TITLE>Delete a MySQL Database</TITLE>
</HEAD>
<BODY>
<? echo “$msg”; ?>
</BODY>
</HTML>