Topic: Secondary database queries in viewtopic.php

Hello,

I would like to have some data (from another MySQL database) show up on each post.  I have tried modifying viewtopic.php to query the other database.  However, this seems to break the loop of displaying posts in the topic thread.  In other words, as soon as I try to connect to another database, PunBB doesn't display the posts anymore.  It's almost like my second database connection breaks PunBB's database connection.  I have tried connecting to the second database using a unique variable name for the link identifier.  No go.

Any advice would be greatly appreciated.

Thanks,
Dave

Re: Secondary database queries in viewtopic.php

You're putting a query within the loop? I assume that's the problem, since it's an unbuffered query.
Moved to Integration.

Re: Secondary database queries in viewtopic.php

Thank you Smartys for the reply.

Can you point me to where I can read more about "the loop" and how punbb is using unbuffered queries?

Thank you,
Dave