in reply to Re^2: How to reach each element of 2d-array retrieved from Mysql query?
in thread How to reach each element of 2d-array retrieved from Mysql query?
I don't know anything about Mysql.pm, so all this comes from a quick scan of the documentation, but it looks to me like you are executing the statement and fetching the first row each time you go round the loop. I think you need to call query before you go into the loop.
And when you get the loop working correctly, you can simplify all of the code within it to:
push @sect, \@row;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to reach each element of 2d-array retrieved from Mysql query?
by t-strong (Initiate) on May 25, 2006 at 08:31 UTC | |
by davorg (Chancellor) on May 25, 2006 at 08:41 UTC | |
by t-strong (Initiate) on May 25, 2006 at 09:13 UTC | |
by davorg (Chancellor) on May 25, 2006 at 09:55 UTC | |
by davorg (Chancellor) on May 25, 2006 at 08:38 UTC | |
by t-strong (Initiate) on May 25, 2006 at 08:48 UTC |