This is the code I am using: <?php $dbh=mysql_connect ("localhost", 'user', "password") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("user_data", $dbh); $sql = "select lname from experiment fname='Jouko'"; $result = mysql_query ($sql) or die (mysql_error().$sql); $b_row = mysql_fetch_array($result); ?> This is the result: Warning: mysql_connect(): Access denied for user: 'user@delta.sitelutions.com' (Using password: YES) in /home/bill5040/public_html/Test/sql.php on line 2 I cannot connect to the database because: Access denied for user: 'user@delta.sitelutions.com' (Using password: YES) I changed some things for security purposes.