I hope I have posted in the correct forum. If not, please advise and/or move.

I have a homepage which uses smarty templating and also Pear DB. The login for the homepage will also allow access to the forum (phpbb2). I was trying to put forum topics, and other phpbb items on the homepage but have run into errors that I think are due to Pear, like headers not being able to update because it has already been called in sessions.php, errors stating that it can't get the information from the database because I think it's looking at table_ instead of table2_ for instance. Does anyone know if Pear and phpbb use similar calls like $db? I hope I have been clear enough.
Thank you in advance.