Bitrix Site Manager

CDBResult::FieldName

mixed
CDBResult::FieldName(
 int column
)

The method FieldName returns the name of a field by its ordinal.

Parameters

ParameterDescription
column The field ordinal.

Return Values

Name of the field.

See Also

Example



<?
$rs = $DB->Query($query,true);
$intNumFields = $rs->FieldsCount();
$i = 0;
while ($i<$intNumFields) 
{
    $arFieldName[] = $rs->FieldName($i);
    $i++;
}
?>