Help for this page

Select Code to Download


  1. or download this
    ($line) = $sth->fetchrow_array()
    
  2. or download this
            while (($line) = $sth->fetchrow_array()) {
                     push(@all_rows, $line);
    ...
            foreach (@all_rows) {
                    print "$_\n";
           }
    
  3. or download this
    while ( (@record) = $sth->fetchrow_array()) {
                     push(@all_rows, \@record);
    ...
            foreach my $row_ref (@all_rows) {
                    print "@{$row_ref}\n";
           }