v5:activerecord:load
load
See Also
Syntax
bool load( optional string $where='', optional mixed[] $bindVariables = false )
Description
Loads a record from the database. If an error occurs, or no records are found it returns false, otherwise true.
Usage
$person = new person(); $person->Load("id=1"); foreach($person->children as $c) { echo " $c->name_first "; $c->name_first .= ' K.'; $c->Save(); ## each child record must be saved individually }
v5/activerecord/load.txt · Last modified: 2018/09/22 15:43 by mnewnham