ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:recordset:fetchfield

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:recordset:fetchfield [2021/05/05 03:29] mnewnhamv5:reference:recordset:fetchfield [2021/05/05 03:42] (current) mnewnham
Line 6: Line 6:
  
 == Syntax == == Syntax ==
-    obj fetchField() {+    mixed fetchField() {
         optional integer $fieldNumber         optional integer $fieldNumber
     }     }
Line 12: Line 12:
 ===== Description ===== ===== Description =====
 fetchField() returns __database specific__ information about n<sup>th</sup> column in a row of a recordset. Column offsets start at zero. If no field number is provided, the first column is returned.  fetchField() returns __database specific__ information about n<sup>th</sup> column in a row of a recordset. Column offsets start at zero. If no field number is provided, the first column is returned. 
 +
 +If the recordset is available and the offset provided is in range, then an **ADOFieldObject** object is returned, otherwise the method returns **false**.
 +
  
 **It is important to note that the information contained in the object returned varies from database to database.** There is a common set of fields returned, but the values vary from database to database for the same data type. Check the guide for each driver to see any extra information provided. **It is important to note that the information contained in the object returned varies from database to database.** There is a common set of fields returned, but the values vary from database to database for the same data type. Check the guide for each driver to see any extra information provided.
v5/reference/recordset/fetchfield.txt · Last modified: 2021/05/05 03:42 by mnewnham