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
v5:userguide:learn_fields:field_objects [2021/03/09 09:28] – [Fields As Objects] dregadv5:userguide:learn_fields:field_objects [2021/03/09 09:38] (current) – [Interrogating The Columns] wrong variable name in code sample dregad
Line 51: Line 51:
          */           */ 
          $fieldInfo = $recordSet->fetchField($colIndex);          $fieldInfo = $recordSet->fetchField($colIndex);
-         $type      = $recordSet->metaType($fld->type);+         $type      = $recordSet->metaType($fieldInfo->type);
            
          /*          /*
          * This is the value of the field          * This is the value of the field
          */          */
-         $value     = $recordSet->fields[$colIndex];+         $value     = $recordSet->fields($colIndex);
                        
 </code> </code>
v5/userguide/learn_fields/field_objects.1615278505.txt.gz · Last modified: 2021/03/09 09:28 by dregad