in reply to Re: use of DBI perl function fetchall_arrayref
in thread use of DBI perl function fetchall_arrayref
my $rows = $sth_tss->fetchall_arrayref; $count = 0; print $CGI->p("rows is ", @$rows); for my $row ( @$rows ) { $CGI->p("Row", ++$count); my @fields = @$row; for my $field ( $fields ) { print $CGI->p($field); } }
and the code it generates is:
and so on. What am I doing wrong?ARRAY(0x40285608) ARRAY(0x402856a4) ARRAY(0x40285740) ARRAY(0x402 RRAY(0x40285878) ARRAY(0x402860e0) ARRAY(0x4028617c) ARRAY(0x40286218) + A 02862b4) ARRAY(0x40286350) ARRAY(0x402863ec) ARRAY(0x40286488) ARRAY(0 +x4 ARRAY(0x40287104) ARRAY(0x402871a0) ARRAY(0x4028723c) ARRAY(0x402872d +8) x40287374) ARRAY(0x40287fbc) ARRAY(0x40288058) ARRAY(0x402880f4) ARRAY +(0 0) ARRAY(0x4028822c) ARRAY(0x402882c8) ARRAY(0x40288364) ARRAY(0x40288 +f3 (0x40288fd8) ARRAY(0x40289074) ARRAY(0x40289110) ARRAY(0x402891ac) ARR +AY 248) ARRAY(0x40289e90) ARRAY(0x40289f2c) ARRAY(0x40289fc8) ARRAY(0x402 +8a AY(0x4028a100) ARRAY(0x4028a19c) ARRAY(0x4028ae14) ARRAY(0x4028aeb0) A +RR 8af4c) ARRAY(0x4028afe8) ARRAY(0x4028b084) ARRAY(0x4028b120) ARRAY(0x4 +02 RRAY(0x4028bddc) ARRAY(0x4028be78) ARRAY(0x4028bf14) ARRAY(0x4028bfb0) + A 028c04c) ARRAY(0x4028c0e8) ARRAY(0x4028d100) ARRAY(0x4028d19c)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: use of DBI perl function fetchall_arrayref
by davorg (Chancellor) on Jan 26, 2007 at 15:16 UTC | |
by kmullin5016 (Acolyte) on Jan 26, 2007 at 15:58 UTC | |
by davorg (Chancellor) on Jan 26, 2007 at 16:07 UTC | |
by Jenda (Abbot) on Jan 27, 2007 at 01:24 UTC | |
|
Re^3: use of DBI perl function fetchall_arrayref
by Herkum (Parson) on Jan 26, 2007 at 17:55 UTC | |
|
Re^3: use of DBI perl function fetchall_arrayref
by graff (Chancellor) on Jan 26, 2007 at 22:53 UTC |