$USER_ID=$USER->GetId();
$res=CIBlock::GetList(Array("DATE_ACTIVE_FROM"=>"DESC", "SORT"=>"ASC", "NAME" => "ASC"),Array('TYPE'=>'test_iblock','ACTIVE'=>'Y',"CNT_ACTIVE"=>"Y","PROPERTY_P_USER_ID"=>$USER_ID), true);
while($item=$res->GetNext())
{
$num_rec=$item["ELEMENT_CNT"];
}
|