src/Db/MySQL/Drivers/MySQLi.php
public function selectDatabase(string $databaseName = ''): void
    {
        $this->selectedDB = $databaseName;
        $this->currentDB = $this->currentLink->select_db($databaseName);

        if (!$this->currentDB) {
            $this->setError(AbstractMySQL::E_NO_DB_SELECTED, __CLASS__);
        }
    }
public function selectDatabase(string $databaseName = ''): void
    {
        $this->selectedDB = $databaseName;
        $this->currentDB = $this->currentLink->select_db($databaseName);

        if (!$this->currentDB) {
            $this->setError(AbstractMySQL::E_NO_DB_SELECTED, __CLASS__);
        }
    }
public function selectDatabase ( string $ databaseName = '' ) : void { $ this -> selectedDB = $ databaseName ; $ this -> currentDB = $ this -> currentLink -> select_db ( $ databaseName ) ; if ( ! $ this -> currentDB ) { $ this -> setError ( AbstractMySQL :: E_NO_DB_SELECTED , __CLASS__ ) ; } }
Selects a database.

@param   string $databaseName
@return  void
Selects a database .