dbhost=$dbhost; $this->dbuser=$dbuser; $this->dbname=$dbname; $this->dbpassword=$dbpassword; $this->dbprefix=$dbprefix; } public function open(){ try { $this->db = new mysqli($this->dbhost, $this->dbuser, $this->dbpassword, $this->dbname); } catch (Exception $e){ echo $e->getMessage(); exit; } } }