Documentation

GetNext

mixed
CDBResult::GetNext(
 bool TextHtmlAuto=true,
 bool use_tilda=true
 )

Returns an array of field values, converted into HTML-safe format. If the end of retrieved selection is reached, the method will return false. Non-static method.

Parameters

ParameterDescription Available from version
TextHtmlAuto If this parameter value - "true", the method will be automatically process fields with selection of text/html format.
Optional. By default - "true".
use_tilda If this parameter value - "true", then aside from the fields, converted HTML - safe format, the resulting array will also include original (initial) values of these fields (array keys with original names of these fields will have suffix "~").
Optional. By default - "true".

See Also

Examples of use

<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>


© «Bitrix24», 2001-2024
Up