public function __construct($host, $username, $password, $db) { $this->_mysqli = new mysqli($host, $username, $password, $db) or die('There was a problem connecting to the database'); self::$_instance = $this; }