src/Db/MySQL/Drivers/MySQLi.php
public function openConnection(): void
    {
        $this->closeConnection();
        $this->currentLink = @new \mysqli($this->databaseHost, $this->databaseUser, $this->databasePass);

        if (!$this->currentLink->connect_error) {
            $this->isConnected = true;
            $this->connectionCount += 1;
        } else {
            $this->setError(AbstractMySQL::E_NO_CONNECTION, __CLASS__);
        }
    }
public function openConnection(): void
    {
        $this->closeConnection();
        $this->currentLink = @new \mysqli($this->databaseHost, $this->databaseUser, $this->databasePass);

        if (!$this->currentLink->connect_error) {
            $this->isConnected = true;
            $this->connectionCount += 1;
        } else {
            $this->setError(AbstractMySQL::E_NO_CONNECTION, __CLASS__);
        }
    }
public function openConnection ( ) : void { $ this -> closeConnection ( ) ; $ this -> currentLink = @ new \ mysqli ( $ this -> databaseHost , $ this -> databaseUser , $ this -> databasePass ) ; if ( ! $ this -> currentLink -> connect_error ) { $ this -> isConnected = true ; $ this -> connectionCount += 1 ; } else { $ this -> setError ( AbstractMySQL :: E_NO_CONNECTION , __CLASS__ ) ; } }
Opens new database connection.

@return  void
Opens new database connection .