So i'm working on this thing. I got this php code :
but when i'm checking the page out online, it gives me the following error:
Error: Access denied for user 'xxxxx'@'10.1.1.27' to database 'snippets'
Thanks for the help guys
Code:
<html>
<head>
</head>
<body>
<?php
$con = mysql_connect("xxxhostxxx","xxxuserxxxx","xxxpassxxx");
if (!$con) {
die("Cannot connect: " . mysql_error());
}
if(mysql_query("CREATE DATABASE snippets", $con)) {
echo "Database created";
}
else
echo "Error: " . mysql_error();
mysql_close($con);
?>
</body>
</html>
but when i'm checking the page out online, it gives me the following error:
Error: Access denied for user 'xxxxx'@'10.1.1.27' to database 'snippets'
Thanks for the help guys