Documentation

SelectedRowsCount

int
CDBResult::SelectedRowsCount()

The method returns the number of selected records (records selection is performed via "SELECT ..." SQL command). Non-static method.

Note. The Oracle version supports this method only after prior call to CDBResult::NavStart, or the last record of selection is retrieved.

Parameters


No parameters.

See Also

Examples of use

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


© «Bitrix24», 2001-2024
Up