Drop Database using PHP Script

Drop Database using

Syntax

mysqli_query (  sal , Connection );

Parameter Description
sql Required – SQL query to create or delete a MySql database
Connection Optional – if not specified then last opened connection by mysqli_connect will be used.

Example:-
Try out Following example to delete a database:
‘;
$drop = “Drop Database Tutorials”;
$return = mysqli_query($droup,$conn);
if(!$return)
{
die(“could not delete database: ‘ . mysqli_error());
}
echo “Database deleted successfully”;
mysqli_close();
?>