Last active
December 27, 2020 19:27
-
-
Save barmgeat/2f48e6a1e591d560fe4d315d477da3b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Create database | |
$sql = "CREATE DATABASE myDB"; | |
if ($conn->query($sql) === TRUE) { | |
echo "Database created successfully"; | |
} else { | |
echo "Error creating database: " . $conn->error; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment