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
In reply to fetchrow_hashref returns blanks by petermckeown
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |