global $USER; $filter = Array("LOGIN_EQUAL" => $P_FROM); $sql=CUser::GetList(($by="id"), ($order="desc"), $filter); if($sql->NavNext(true, "f_")) { $FROM_ID=$f_ID; //что-то делаю.. }
$P_FROM=$APPLICATION->get_cookie("P_FROM");