This has got me really stumped. Any help would be appreciated

Ive got the hack to work fine on my home machine (XP Server) and a test copy of vbulletin 2.2.1. Runs fine not a problem had to edit one thing to get to work under XP but thats it. Once I try the install on my host (Linux) with the real site (I've tried about ten times) I continue to get this:
Warning: Supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/forum/vbstats.php on line 88
1046: No Database Selected
Is it something I'm doing wrong?? I read through most of this massive thread but cant find a sollution...