Bitrix Site Manager

CDBResult::GetNext

mixed
CDBResult::GetNext(
 bool text_html=true,
 bool original=true
)

The method GetNext returns an array of field values converted to the HTML safe format.

Parameters

ParameterDescription
text_html If set to true, the method will automatically handle fields that allow for different formats for storing data (text / html). Optional; true by default.
original If set to true, the returned array also contains original field values; these fields can be accessed by keys with suffix "~" appended to original key names. Optional; true by default.

Return Value

The method returns false if there is no more records to return, or the array otherwise.

See Also

Example



<select>
<?
$rs = CGroup::GetList($order="ID", $by="ASC");
while ($arGroup=$rs->GetNext()) :
   ?><option value="<?=$arGroup["ID"]?>"
   <?if (IntVal($arGroup["ID"])==IntVal($show_perms_for)) echo " selected";?>
   ><?=$arGroup["NAME"]?></option><?
endwhile;
?>
</select>