hey guys i'm new to this as just started a web design corse but hav very little php etc. knowledge.
im tryin to connect to my database and im gettin this :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'andbuild'@'74.86.116.190' (using password: YES) in /home/andbuild/public_html/dologin.php on line 7
There was a problem connecting to the mysql server. Error returned: Access denied for user 'andbuild'@'74.86.116.190' (using password: YES)
my code at the beginning being..
<?php
$username = "andbuild"; // MySQL Username
$password = "*****"; //MySQL Password
$server = "x10hosting.com"; // MySQL server you wish to connect to. Usually "localhost"
$mysqlconnection = mysql_connect($server, $username, $password);
if (!$mysqlconnection) {
die('There was a problem connecting to the mysql server. Error returned: '. mysql_error());
}
?>
have i made a simple error... PROBABLY!!
please could someone help?:nuts:
im tryin to connect to my database and im gettin this :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'andbuild'@'74.86.116.190' (using password: YES) in /home/andbuild/public_html/dologin.php on line 7
There was a problem connecting to the mysql server. Error returned: Access denied for user 'andbuild'@'74.86.116.190' (using password: YES)
my code at the beginning being..
<?php
$username = "andbuild"; // MySQL Username
$password = "*****"; //MySQL Password
$server = "x10hosting.com"; // MySQL server you wish to connect to. Usually "localhost"
$mysqlconnection = mysql_connect($server, $username, $password);
if (!$mysqlconnection) {
die('There was a problem connecting to the mysql server. Error returned: '. mysql_error());
}
?>
have i made a simple error... PROBABLY!!
please could someone help?:nuts: