[man]mysql_connect[/man]
Should be:
$link = mysql_connect($dbHOST,$dbuser,$dbpass); <<//HOST not dbname
if($line==false), it means you are not logged in.
If you are trying to log into the MySQL server with the dbname, chances are you are consistently failing.
You select your database ONCE LOGGED IN,
$dbselection=mysql_select_db($dbname);
if($dbselection==false), it means you haven't successfully selected the database.