in reply to Simple db select output script hanging up.
replace
and see if that makes any difference
Also, it seems to me that you don't have 'use strict;' or 'use warnings;' - add them and you might find that Perl will point out an obvious error
with$k = 0; while (@results = $sth->fetchrow_array()) { $data[$k] = [ @results ]; $k++; }
while($results = $sth->fetchrow_array_ref()) { push @data, $results; }
and see if that makes any difference
Also, it seems to me that you don't have 'use strict;' or 'use warnings;' - add them and you might find that Perl will point out an obvious error
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Simple db select output script hanging up.
by punch_card_don (Curate) on Jun 22, 2007 at 18:09 UTC |
In Section
Seekers of Perl Wisdom