int CDBResult::FieldsCount()
The method FieldsCount returns the number of fields in the selection.
Number of fields in the selection.
<?
$rs = $DB->Query($query,true);
$intNumFields = $rs->FieldsCount();
$i = 0;
while ($i<$intNumFields)
{
$arFieldName[] = $rs->FieldName($i);
$i++;
}
?>
| © 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |