Create Database

TOP; $host = "localhost"; $user = ""; $pwd = ""; $con = new mysql_connect($host, $user, $pwd); if (!$con) { die("Connection failed: " . mysql_error()); } else { print "Connected to ". $con->host_info . "\n"; if (mysql_query("CREATE DATABASE db_username", $con) { print "Database created. \n"; } else { print "Could not create database: " . mysql_error() . "\n"; } mysql_close($con); } print << BOTTOM; ?>