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
v5:activerecord:load [2016/01/13 02:15] – ↷ Page moved from activerecord:load to v5:activerecord:load mnewnhamv5:activerecord:load [2018/09/22 15:43] (current) mnewnham
Line 3: Line 3:
 <WRAP right box> <WRAP right box>
 == See Also == == See Also ==
-[[reference:execute()]]+[[v5:reference:connection:execute]]
 == Syntax == == Syntax ==
   bool load(   bool load(
      optional string $where='',      optional string $where='',
-     optional mixed[] $bindVariables = false, +     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. If the optional 3rd parameter $lock is set to true, the [[activerecord:lockmode|database lock statement]] is applied to the SELECTed records.+Loads a record from the database. If an error occurs, or no records are found it returns false, otherwise true.
 ------------------------------ ------------------------------
 ===== Usage ===== ===== Usage =====
v5/activerecord/load.1452647746.txt.gz · Last modified: 2017/04/21 11:21 (external edit)