Help for this page

Select Code to Download


  1. or download this
    #get array ref
    my $results=$sth->fetchall_arrayref;
    ...
    my $field1=$results->[3][0];
    my $field2=$results->[3][1]; 
    my $field3=$results->[3][2];
    
  2. or download this
    my @results=$sth->fetchrow_array; 
    my $arrayref=$sth->fetchrow_arrayref;