public function connect($database) { $this->database = $database; $dsn = "sqlite:{$database}"; parent::connect($dsn); $return = true; return $return; }
public function connect($hostname, $database, $username, $password) { $this->hostname = $hostname; $this->username = $username; $this->password = $password; $this->database = $database; $dsn = "mysql:host={$hostname};dbname={$database}"; parent::connect($dsn, $username, $password); $return = true; return $return; }