v5:reference:connection:recordcount
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
reference:recordcount [2015/09/14 23:54] – mnewnham | v5:reference:connection:recordcount [2018/05/03 14:36] – [Usage] Fix incorrect code per https://github.com/ADOdb/ADOdb/issues/417 dregad | ||
---|---|---|---|
Line 2: | Line 2: | ||
<WRAP right box> | <WRAP right box> | ||
== See Also == | == See Also == | ||
- | [[database: | + | [[v5:database: |
== Syntax == | == Syntax == | ||
int recordCount() | int recordCount() | ||
Line 8: | Line 8: | ||
The function '' | The function '' | ||
- | 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