Bitrix Site Manager

CDBResult::SelectedRowsCount

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.

Parameters


No parameters.

Return Values

Number of records selected.

See Also

Example



<?
$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;
?>