Database connection in constructor and destructor
You could use MySQLi (PHP extension) which is class based by default instead of MySQL. It 
is very easy to set up multiple connections. You are, however, required to know the connection you are querying always.



Congrats with the first question.