create mysql database using php

 <?php
$servername="localhost";
$username="root";
$password="";

$conn=mysqli_connect($servername,$username, $password);

$sql="CREATE DATABASE shrisha";

mysqli_query($conn,$sql);

mysqli_close($conn);

?>

Comments

Popular posts from this blog