hello, I am currently setting up a mysql databse, and I'm trying to conect to it through php.
the error message i am getting is:
Warning: Access denied for user: 'heighington@localhost' (Using password: YES) in /home/heighington/public_html/john2.php on line 12 Warning: MySQL Connection Failed: Access denied for user: 'heighington@localhost' (Using password: YES) in /home/heighington/public_html/john2.php on line 12 Unable to select database
I think this means that I have th name of the local host wring, but i have no idea what to put.
this is the code:
<?
$username="heighington";
$password="ccJWZKTf";
$database="heighington";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
mysql_close();
?>
I am currently using localhost, but read somewhere about using localhost:3306, but that came up with a parsing error.
has anybody got any ideas?
thanks.