Can't be sure, but from the error messages on the 2nd link it looks like perhaps your mysql_connect() is failing. You might want to add some debugging info to it:
$link = mysql_connect($dbHost, $dbUser, $dbPwd) or die("DB connection failed. " . mysql_error());
Obviously, since we can't see your source code, I'm just using generic variables for the various values.