public function listColumns()
    {
        $fieldNames = array();
        $field = NULL;
        while ($field = mysqli_fetch_field($this->getResultId())) {
            $fieldNames[] = $field->name;
        }

        return $fieldNames;
    }
public function listColumns()
    {
        $fieldNames = array();
        $field = NULL;
        while ($field = mysqli_fetch_field($this->getResultId())) {
            $fieldNames[] = $field->name;
        }

        return $fieldNames;
    }
public function listColumns ( ) { $ fieldNames = array ( ) ; $ field = NULL ; while ( $ field = mysqli_fetch_field ( $ this -> getResultId ( ) ) ) { $ fieldNames [ ] = $ field -> name ; } return $ fieldNames ; }
Lists all columns in a result row

@return array
Lists all columns in a result row