I would like to connect to my affiliate db on the same server from tpl_footer.php. It seems to confuse the two db's and will not run my query correctly; it seems to mix up the tables somehow.
If I call the php script from outside tpl_footer.php code, it works perfect. Seems like it's confusing variables.
Any hints?