NumRows

From PHRETS


Syntax

NumRows ( [ string $pointer_id ] )

Returns number of records included in response from previous SearchQuery(). Note the difference between TotalRecordsFound()


Parameters

$pointer_id
The returned value from SearchQuery(). If not given, defaults to last SearchQuery() call


Return Values

Integer
Represents number of records returned in the last SearchQuery() response.


Changelog

Version Description
1.0rc2 Made $pointer_id a parameter that can be passed


Examples

if ($rets->NumRows() > 1000) {
        echo "More than 1,000 rows returned in last response.\n";
}


Related to

Views
Personal tools