public function selectDB($name)
    {
        $this->dbname = $name;

        if ($this->phase !== self::PHASE_GOT_INIT) {
            return $this->query('USE `' . $name . '`');
        }

        return true;
    }
public function selectDB($name)
    {
        $this->dbname = $name;

        if ($this->phase !== self::PHASE_GOT_INIT) {
            return $this->query('USE `' . $name . '`');
        }

        return true;
    }
public function selectDB ( $ name ) { $ this -> dbname = $ name ; if ( $ this -> phase !== self :: PHASE_GOT_INIT ) { return $ this -> query ( 'USE `' . $ name . '`' ) ; } return true ; }
Sets default database name
@param  string $name Database name
@return boolean         Success
Sets default database name