in reply to Re^2: Retrieving multiple records from database
in thread Retrieving multiple records from database
The array that "fetchrow_array()" returns is the selected columns (each in their own element of the array) from a single row. If your query grabbed multiple rows, you need to keep calling fetchrow_array() to get the next row, and so on. Undef will indicate you're done.
fetchall_arrayref() fetches all of the rows, in a multidimensional array where the 2nd dimension is the columns.
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Retrieving multiple records from database
by bradcathey (Prior) on Oct 17, 2004 at 11:52 UTC | |
by davido (Cardinal) on Oct 17, 2004 at 15:41 UTC |