Once one has connected to the phpBB3 database, the Zen Cart session or database connection seems to get undone.

If I have code to connect to the PHPBB3 database, after connecting to retrieve some info, how would I go about setting things up for Zen Cart to function correctly again?

The file I have edited which is where the session is getting interrupted is tpl_main_page.php. I have placed the connection to PhpBB3 in their, and the Zen Cart code stops working after that code, presumably because of a database or session interrupt.

I am obviously not that knowledgeable about these things, but am not a newbie either.

Any help is very appreciated.

What am I trying to do with this anyways? I am trying to pull out the latest posts from the forum and have them display on the main page of Zen Cart.