v5:reference:connection:po_recordcount
This is an old revision of the document!
po_recordCount
The function po_recordCount()
return the number of records returned by the last select statement.
This portable function executes a SELECT COUNT statement based on the last SQL statement to determine the number of records if the database does not natively support row counting in a select statement.
There may be a substantial overhead to using this function on large recordsets.
Usage
/* * Access database connection assumed */ $result = $db->Execute('SELECT * FROM products'); $recordCount = $db->po_recordCount();
v5/reference/connection/po_recordcount.1452648679.txt.gz · Last modified: 2017/04/21 11:33 (external edit)