Why do I get a
Fatal error: Call to undefined function: mysql_create_db()
in line 13 error?
<html>
<head>
<title>Creating a Database</title>
</head>
<body>
<?php
// Set the variables for the database access:
$Host = "host";
$User = "user";
$Password = "password";
$DBName = "NewDatabase";
$Link = mysql_connect ($Host, $User, $Password);
if (mysql_create_db ($DBName, $Link)){
print ("The database, $DBName, was successfully created!<br>\n");
} else {
print ("The database, $DBName, could not be created!<br>\n");
}
mysql_close ($Link);
?>
</body>
</html>
thanks