Hmmm...
I am still getting that error. The code works great. I've created a page called test3.php -
http://www.clublexus.com/html/test3.php
Which works great on it's own. It will work on my nuke site as well but the error call is referencing to the wrong database. vbullet is my forum database but the nuke database is called chr so the "mainfile.php" seems to be getting the wrong database in it's $db variable after running the include file.
I'll try out other code but this is frustrating...