v5:reference:connection:recordcount
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
reference:recordcount [2015/09/14 23:54] – mnewnham | v5:reference:connection:recordcount [2018/05/03 14:39] (current) – [recordCount] method, not function dregad | ||
---|---|---|---|
Line 2: | Line 2: | ||
<WRAP right box> | <WRAP right box> | ||
== See Also == | == See Also == | ||
- | [[database: | + | [[v5:database: |
== Syntax == | == Syntax == | ||
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.txt · Last modified: 2018/05/03 14:39 by dregad