Код |
---|
<?php $arSelect = Array("ID", "NAME"); $arFilter = Array("IBLOCK_ID"=>29, "ACTIVE"=>"Y"); $res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, false, $arSelect); while($ob = $res->GetNextElement()) { $arFields = $ob->GetFields(); print_r($arFields."<br />"); } ?> |