ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:recordcount

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
v5:reference:connection:recordcount [2016/01/17 02:30] – ↷ Page moved from v5:reference:recordcount to v5:reference:connection:recordcount mnewnhamv5:reference:connection:recordcount [2018/05/03 14:36] – [Usage] Fix incorrect code per https://github.com/ADOdb/ADOdb/issues/417 dregad
Line 13: Line 13:
 <code php> <code php>
 /* /*
- IBM DB2 database connection assumed+ Existing database connection assumed
  */  */
 $result = $db->Execute('SELECT * FROM act'); $result = $db->Execute('SELECT * FROM act');
-$recordCount = $db->recordCount();+$recordCount = $result->recordCount();
 </code> </code>
  
v5/reference/connection/recordcount.txt · Last modified: 2018/05/03 14:39 by dregad