Esempio n. 1
0
 public function connect($database)
 {
     $this->database = $database;
     $dsn = "sqlite:{$database}";
     parent::connect($dsn);
     $return = true;
     return $return;
 }
Esempio n. 2
0
 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;
 }