ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:fetchinto

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:reference:fetchinto [2016/01/13 02:30] – ↷ Page moved from reference:fetchinto to v5:reference:fetchinto mnewnhamv5:reference:fetchinto [2016/01/15 02:18] mnewnham
Line 8: Line 8:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The PEAR compatible function ''fetchInto()'' retrieves a recordset into an array. +The PEAR compatible function ''fetchInto()'' retrieves a recordset into an array. The array must be passed by reference in the method
 ---------------------------------------- ----------------------------------------
 ===== Usage ====== ===== Usage ======
Line 19: Line 19:
 while (!$result->EOF){ while (!$result->EOF){
     $arr = array();     $arr = array();
-    $result->fetchInto($arr);+    $result->fetchInto(&$arr);
          
     print_r($arr);     print_r($arr);
v5/reference/connection/fetchinto.txt · Last modified: 2016/01/17 00:48 by mnewnham