SOURCE CODE:
<?php
$servername="localhost";
$username="root";
$password="";
//Create a connection($connect)
//Check the connection
$new_db="CREATE DATABASE newDB";
if($connect->query($new_db)==TRUE){
echo "Database created successfully";
}
else{
echo "Error: ".$conn->error;
}
$conn->close();
?>
<?php
$servername="localhost";
$username="root";
$password="";
//Create a connection($connect)
//Check the connection
$new_db="CREATE DATABASE newDB";
if($connect->query($new_db)==TRUE){
echo "Database created successfully";
}
else{
echo "Error: ".$conn->error;
}
$conn->close();
?>
Comments
Post a Comment