Okay, I have a script which connects to 2 databases, one for network accounts, and 1 for site-specific data.
I obviously use OOP (classes) for this... but when using modules and saying okay $this->conn = $GLOBALS['c']->conn; does that create a new CONNECTION to the database or just copy the object and not actually make a new connection?
The reason I ask is because sometimes I get the server bugging out and giving like 8 different messages saying too many connections with mysql_select_db();
I'm starting to wonder if I'm mistakingly connecting to the database 8 different times with each page hit.. which would be really really bad.. I only want 2.