First off it immediately hits me that you are using msql_create_db instead of mysql_create_db which might be one fault 😛
First thing you need to do is include some information about your mysql install/user account: your host (usually localhost), username, and password, otherwise php doesn't know what mysql host to run the query on.
Also as it stands your code won't do much anyway since you have no variables defined.
You need to define the mysql_create_db thing to a variable, then call that variable back within a query.
Why not try the following:
<?php
#assign variables to your mysql information
$dbhost = localhost;
$dbuser = yourusername;
$dbpass = yourpassword;
# connect to mysql
$rs = @mysql_connect("$dbhost","$dbuser","$dbpass")
or die("Could not connect to mysql");
# first, define a variable named 'create' as the mysql_create_db request
$query1 = mysql_create_db ( "filename" )
or die(mysql_error());
# now state the query
$rs = mysql_query($query1);
echo($query1);
#run the query
if($rs)
{
# this is the message that comes up if it worked
$alert = "Database created!!";
}
else
{
# this message comes up if it didn't
$alert = "Could not create database...";
}
# print the relevant message to the page
echo ($alert);
?>