ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:load

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
Next revisionBoth sides next revision
activerecord:load [2015/12/05 18:16] mnewnhamv5:activerecord:load [2016/01/18 20:47] – ↷ Links adapted because of a move operation 66.249.75.217
Line 2: Line 2:
 ~~NOTOC~~ ~~NOTOC~~
 <WRAP right box> <WRAP right box>
-  bool load()+== See Also == 
 +[[v5:reference:connection:execute]] 
 +== Syntax == 
 +  bool load( 
 +     optional string $where='', 
 +     optional mixed[] $bindVariables = false, 
 +     optional bool $lock=false 
 +     )
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-Loads a record from the database. If an error occurs it returns false, otherwise true+Loads a record from the database. If an error occurs it returns false, otherwise true. If the optional 3rd parameter $lock is set to true, the [[activerecord:lockmode|database lock statement]] is applied to the SELECTed records. 
 +------------------------------
 ===== Usage ===== ===== Usage =====
 <code php> <code php>
v5/activerecord/load.txt · Last modified: 2018/09/22 15:43 by mnewnham