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
In reply to Re^3: Retrieving multiple records from database
by davido
in thread Retrieving multiple records from database
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |