int CDBResult::SelectedRowsCount()
The method SelectedRowsCount returns the number of records selected (the selection is carried out by issuing the SQL command SELECT ...).
Note
The Oracle version supports this method only after prior call to CDBResult::NavStart; of if the last record of the selection is retrieved.
Number of records selected.
<? $rsBanners = CAdvBanner::GetList($by, $order, $arFilter, $is_filtered); $rsBanners->NavStart(20); if (intval($rsBanners->SelectedRowsCount)>0): echo $rsBanners->NavPrint("Banners"); while($rsBanners->NavNext(true, "f_")): echo "[".$f_ID."] ".$f_NAME."<br>"; endwhile; echo $rsBanners->NavPrint("Banners"); endif; ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |