ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:getactiverecords

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
activerecord:getactiverecords [2015/12/05 21:19] – [Usage] mnewnhamv5:activerecord:getactiverecords [2018/07/02 14:19] (current) – prefer functions start lowercase (#430) peterdd
Line 21: Line 21:
  Where clause  Where clause
 ==== $bindarr ==== ==== $bindarr ====
-For more information on the use of ''Bind'' variables, see [[reference:execute()]].+For more information on the use of ''Bind'' variables, see [[v5:reference:connection:execute]].
 ==== $primaryKeyArray ==== ==== $primaryKeyArray ====
    
Line 47: Line 47:
  
 $whereOrderBy = "1=1 ORDER BY Name"; $whereOrderBy = "1=1 ORDER BY Name";
-$activeRecArr = $db->GetActiveRecords($table);+$activeRecArr = $db->getActiveRecords($table);
 /* /*
 * To use bind variables (assuming ? is the place-holder for your database): * To use bind variables (assuming ? is the place-holder for your database):
Line 58: Line 58:
 Define the primary key field[s] of the table by passing an array of field names: Define the primary key field[s] of the table by passing an array of field names:
 */ */
-$activeRecArr = $db->GetActiveRecords($tableName, 'name LIKE ?',+$activeRecArr = $db->getActiveRecords($tableName, 'name LIKE ?',
  array('A%'), array('id'));  array('A%'), array('id'));
 </code> </code>
 {{tag>[Active_Record]}}        {{tag>[Active_Record]}}       
v5/activerecord/getactiverecords.1449346748.txt.gz · Last modified: 2017/04/21 11:51 (external edit)