9homie
05-18-2008, 06:02 PM
Hello
<?
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("localhost", "my_username", "my_password") or die(mysql_error());
mysql_select_db('my_database', $conn) or die(mysql_error());
?>
This isn't working. (I have put things like "my_username" because i don't want to put my details)
It comes up with:
PHP Error Message
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a8546868'@'localhost' (using password: YES) in /home/a8546868/public_html/database.php on line 6
Free Web Hosting
Access denied for user 'a8546868'@'localhost' (using password: YES)
That is what comes up. Does anyone know what is happening?
Thank You
9homie
<?
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("localhost", "my_username", "my_password") or die(mysql_error());
mysql_select_db('my_database', $conn) or die(mysql_error());
?>
This isn't working. (I have put things like "my_username" because i don't want to put my details)
It comes up with:
PHP Error Message
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a8546868'@'localhost' (using password: YES) in /home/a8546868/public_html/database.php on line 6
Free Web Hosting
Access denied for user 'a8546868'@'localhost' (using password: YES)
That is what comes up. Does anyone know what is happening?
Thank You
9homie