Im getting a "Unknown database 'user_admin'" error and i dont see it

here is my code

$username = mysql_real_escape_string($_POST["Username"]);

$query = "SELECT * FROM user WHERE UserName='$username'";
$result = mysql_query($query);

if(mysql_affected_rows() == 0)
    //All Checks Out: Create Databases
    $dbase = "user_" . $_POST["Username"];

    mysql_query("CREATE DATABASE $dbase",$con) or die(mysql_error());

    mysql_select_db($dbase, $con) or die(mysql_error());

    $sql = "CREATE TABLE profile
    intro varchar(180), 
    WhoAMI TEXT, 
    gender int,
    Location varchar(50),

The database is correctly created at line 11 ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.