javajenius
New Member
- Messages
- 258
- Reaction score
- 0
- Points
- 0
Why is my access denied to create a database with php?
Code:
$con = mysql_connect("localhost","cpusername","cppassword");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if (mysql_query("CREATE DATABASE my_db",$con))
{
echo "Database created";
}
else
{
echo "Error creating database: " . mysql_error();
} mysql_close($con);
Last edited: