Posts by zavareze • 161 points
1 post
-
6
votes3
answers641
viewsQ: How to connect to Mysql only once, without having to instantiate every time?
How do I connect to Mysql only once, without writing it again in every function? Currently I do so: class Site { var $driver; var $host; var $dbname; var $user; var $pass; public function…