public function selectDatabase($database)
    {
        $mysqli = $this->_mysqli();

        if(!$mysqli->select_db($database))
            throw new Exception($mysqli->error, $mysqli->errno);

        $this->_selectedDatabase = $database;

        return $this;
    }
public function selectDatabase($database)
    {
        $mysqli = $this->_mysqli();

        if(!$mysqli->select_db($database))
            throw new Exception($mysqli->error, $mysqli->errno);

        $this->_selectedDatabase = $database;

        return $this;
    }
public function selectDatabase ( $ database ) { $ mysqli = $ this -> _mysqli ( ) ; if ( ! $ mysqli -> select_db ( $ database ) ) throw new Exception ( $ mysqli -> error , $ mysqli -> errno ) ; $ this -> _selectedDatabase = $ database ; return $ this ; }
Selects a particular database
@chainable
Selects a particular database