ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:learn_fields:field_objects

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
v5:userguide:learn_fields:field_objects [2016/03/18 02:20] mnewnhamv5:userguide:learn_fields:field_objects [2020/01/02 12:03] – ↷ Links adapted because of a move operation dregad
Line 13: Line 13:
  
 ===== Walking The Rows Of A ResultSet ===== ===== Walking The Rows Of A ResultSet =====
-In Lesson 1, we saw a number of ways of moving from one row to the next. It is important to not mix methods, as some methods read the record and automatically advance the record pointer, and some do not. However in all cases, a flag **EOF** is set as soon as the end of the result set is reached. In the following example, the method [[v5:reference:connection:movenext|moveNext()]] is used.+In Lesson 1, we saw a number of ways of moving from one row to the next. It is important to not mix methods, as some methods read the record and automatically advance the record pointer, and some do not. However in all cases, a flag **EOF** is set as soon as the end of the result set is reached. In the following example, the method [[v5:reference:recordset:movenext|moveNext()]] is used.
    
 Note the for both rows and columns, ADOdb uses the PHP convention of a Zero-Based (0) array, as opposed to SQL offsets, which are One-based (1). Note the for both rows and columns, ADOdb uses the PHP convention of a Zero-Based (0) array, as opposed to SQL offsets, which are One-based (1).
Line 71: Line 71:
      * End of the colums, move to next row      * End of the colums, move to next row
      */       */ 
-     $recordSet->MoveNext();+     $recordSet->moveNext();
  
 } }
 </code> </code>
 <WRAP info center 300px> <WRAP info center 300px>
-**End Of Lesson 3**+**End Of Lesson**
 </WRAP> </WRAP>
  
  
v5/userguide/learn_fields/field_objects.txt · Last modified: 2021/03/09 09:38 by dregad