in reply to Array of Arrays & Fetchrow
FWIW, to get your code to work, drop some parentheses:push @rows, $_ for $ratings->fetchrow_arrayref(); # @rows now contains references to rows. # You access rows and colums using: my $value=$rows[1]->[1]; # This would fetch the 2nd column of the 2nd row
while ( @ratings = $ratings->fetchrow_array() ) { push @Array, [$rati ++ngs[0], $ratings[1]]; }
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array of Arrays & Fetchrow
by LTjake (Prior) on Nov 01, 2002 at 00:13 UTC | |
|
Re: Re: Array of Arrays & Fetchrow
by Willman023 (Scribe) on Nov 01, 2002 at 14:40 UTC | |
by Willman023 (Scribe) on Nov 01, 2002 at 17:21 UTC | |
by robartes (Priest) on Nov 01, 2002 at 18:08 UTC | |
by Willman023 (Scribe) on Nov 04, 2002 at 13:46 UTC |