Help for this page

Select Code to Download


  1. or download this
    my $list = $db->prepare("SELECT * FROM `table`");
    $list->execute();
    ...
    foreach (@array) {
        print @{ $_ },"\n";    
    }
    
  2. or download this
    my @array;
    while ( my @arr = $list->fetchrow_array() ) {
    ...
    foreach (@array) {
             print @{ $_ },"\n";    
    }