Hi there, You only need to connect to localhost without any port. MySQL runs on port 3306 by default. Please try:
$dbhost = "localhost";
If you are still having a problem.. find this code:
mysql_connect($dbhost, $dbuser, $dbpass);
and ensure it looks like this:
mysql_connect($dbhost, $dbuser, $dbpass) or die (mysql_error());
This will show a better error - you may show us this so we can further determine what is happening.