I tried to use a test php code to test the database link between the website and the database and this is my code:

<?php



$dbhost = 'localhost';


// your database username.
$dbusername = 'superrandompuppy_redboy';

// the password that corresponds to the above username.
$dbpasswd = 'password for username';

// the database name that your username is associated with.
$database_name = 'superrandompuppy_user';


$connection = mysql_connect("$dbhost","$dbusername","$dbpasswd")

or die ("Couldn't connect to server.");


$db = mysql_select_db("$database_name", $connection)

or die("Couldn't select database.");


// we write this later on, ignore for now.


include('check_login.php');


?>

This is the error I keep getting:


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'superrandompuppy'@'localhost' (using password: YES) in /www/uuuq.com/s/u/p/superrandompuppy/htdocs/db_connect.php on line 18
Couldn't connect to server.

Is there something wrong I keep typing into my script? If so, I would appreciate letting me know what your thoughts on the fix would be. Thanks.