Your telling the script to look for the reviewpost tables in your vbulletin database???
mysql_select_db ("vhfansco_vb")or die("Could not select reviewpost database");
Also note if the username and password is different to access the two databases you also need to uncomment and fill in this line
//$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');