Beispiel #1
0
 /**
  * @param $server
  * @param $user
  * @param $password
  * @return bool
  */
 public function connect($server, $user, $password = '')
 {
     parent::connect($server, $user, $password);
     try {
         $this->handler = mysqli_connect($server, $user, $password);
         mysqli_set_charset($this->handler, $this->setCharset());
     } catch (Exception $e) {
         echo $e->getMessage();
     }
     return true;
 }