As the subject suggests, I'm trying to run a query through PHP to create a brand new database with no initial values. The values will be included after loading a .sql file into the said database.
I though this would of worked:
<?php
require_once('../mysql_connect.php') // Open MySQL Connection
$query = "CREATE DATABASE '{$_POST['db_name_input']}'";
$result = mysql_query($query);
?>
...but apparently not. It doesn't return any errors, just doesn't create the new database. Am I doing something wrong or is creating a database through PHP not possible?