in reply to Populating an array from a mysql select
Erm, yes because fetchrow_array fetches one row. You call it successive times until it returns an empty list (at which point the paranoid will check $select->errstr to see if anything went wrong).
Update: Perhaps selectcol_arrayref and a suitable SELECT statement would be a better fit for what you're attempting? At any rate, read the DBI docs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Populating an array from a mysql select
by blazar (Canon) on May 05, 2007 at 17:28 UTC |