Skip to content

Instantly share code, notes, and snippets.

@barmgeat
Last active December 27, 2020 19:27
Show Gist options
  • Save barmgeat/2f48e6a1e591d560fe4d315d477da3b0 to your computer and use it in GitHub Desktop.
Save barmgeat/2f48e6a1e591d560fe4d315d477da3b0 to your computer and use it in GitHub Desktop.
<?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