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

        if ($this->state !== 1) {
            return $this->query('USE `' . $name . '`');
        }

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

        if ($this->state !== 1) {
            return $this->query('USE `' . $name . '`');
        }

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