in reply to loop though query results twice
If your datasets aren't too large, you might try using fetchall_array instead of fetchrow_array to get the entire dataset. Then you can iterate over the array as many times as you like without having to talk with the database.
...roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: loop though query results twice
by pdmonney (Initiate) on Apr 28, 2009 at 12:39 UTC | |
by Anonymous Monk on Apr 28, 2009 at 13:18 UTC |