Code-Samples/php/Php-createdb2.php Using MySQLi for Database creation connect_error) { die("Connection not established: " . $connection->connect_error); } // Creating Database $query = "CREATE DATABASE Patient"; if ($connection->query($query) === TRUE) { echo "Successful database creation"; } else { echo "Unable to create database " . $connection->error; } $connection->close(); ?>