$arSelect = Array("ID", "IBLOCK_ID", "NAME", "PREVIEW_PICTURE", "PREVIEW_TEXT", "PROPERTY_*");
$arFilter = Array("IBLOCK_ID" => 22, "ACTIVE_DATE" => "Y", "ACTIVE" => "Y");
$res = CIBlockElement::GetList(Array("ID" => "DESC"), $arFilter, false, false, $arSelect);
while ($arFields = $res->GetNext()) {
echo "<pre>";
print_r($arFields);
echo "</pre>";
}
Какая версия инфоблоков? Первая?
Обсуждают сегодня