conn = new mysqli($this->servername, $this->username, $this->password, $this->dbname); } public static function getInstance() { if (!self::$instance) { self::$instance = new Database(); } return self::$instance; } public function getConnection() { return $this->conn; } }