petermckeown has asked for the wisdom of the Perl Monks concerning the following question:
Below are two versions of the code (i want to use the top one! - it returns pages of blanks - the second version returns the details as expected!
Thank you in advancewhile (my $data = $sth->fetchrow_hashref) { my $supplier = $data->{'supplier'}; print $supplier . "\n"; } #while (my @data = $sth->fetchrow_array) { # #my $supplier = $data->{'supplier'}; # my $supplier = $data[0]; # print $supplier . "\n"; #}
edited: Thu Jun 20 16:01:03 2002 by jeffa - added code tags, removed excessive br tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fetchrow_hashref returns blanks
by thunders (Priest) on Jun 20, 2002 at 16:00 UTC | |
|
Re: fetchrow_hashref returns blanks
by ides (Deacon) on Jun 20, 2002 at 15:54 UTC | |
|
Re: fetchrow_hashref returns blanks
by Anonymous Monk on Jun 20, 2002 at 16:39 UTC |