- skip to content

# Database Abstraction Layer

### User Tools

- Login

### Site Tools

- Recent changes
- Media Manager
- Sitemap

### Sidebar

##### Resources

- Reference Manual
- User Guide
- The Data Dictionary
- ADOdb-xmlschema
- ADOdb Active Record
- Performance Monitoring
- Date/Time Library
- Session Management Library
- Unsupported Addons
- Coding Standards

##### Supported Databases

- Access
- ADO
- CSV
- Firebird
- Frontbase
- IBM DB2
- Informix
- Interbase
- LDAP
- Microsoft SQL Server
- MySQL
- Netezza
- ODBC
- ODBTP
- Oracle
- PDO
- Postgresql
- SAP ADS
- SAP ASE
- SAP Maxdb
- SAP Sqlanywhere
- Sqlite
- Sybase
- Plain Text
- Visual Foxpro

##### Other

- Feature Comparison Matrix
- Connection Matrix
- Include File Guide

v5:reference:connection:po_recordcount

# po_recordCount

##### See Also

Feature Comparison Matrix
ADODB_COUNTRECS

##### Syntax

     int 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.txt · Last modified: 2016/01/16 16:15 by mnewnham

### Page Tools

- Show pagesource
- Old revisions
- Backlinks
- Rename Page
- Back to top