v5:reference:connection:recordcount
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:recordcount [2016/01/13 02:31] – ↷ Page moved from reference:recordcount to v5:reference:recordcount mnewnham | v5:reference:connection:recordcount [2018/05/03 14:39] (current) – [recordCount] method, not function dregad | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| int recordCount() | int recordCount() | ||
| </ | </ | ||
| - | The function | + | The '' |
| - | If [[reference: | + | If [[v5:reference:adodb_countrecs|$ADODB_COUNTRECS]] is set to true before a query is executed, then the number of records will be retrieved, even if the function has to be emulated by issuing a '' |
| ---------------------------- | ---------------------------- | ||
| ===== Usage ===== | ===== Usage ===== | ||
| <code php> | <code php> | ||
| /* | /* | ||
| - | | + | |
| */ | */ | ||
| $result = $db-> | $result = $db-> | ||
| - | $recordCount = $db-> | + | $recordCount = $result-> |
| </ | </ | ||
v5/reference/connection/recordcount.1452648682.txt.gz · Last modified: (external edit)
