Help for this page

Select Code to Download


  1. or download this
    my $branches  = $sth->fetchall_arrayref();
    ...
    $template->param( branches => $branches );
    
  2. or download this
    my $branchaoh = \$selbranch;
    
  3. or download this
    my $branchaoh = \@selbranch;
    
  4. or download this
    my $stmt = "SELECT id, name FROM branches";
    &execute_it; 
    ...
       $sth = $dbh->prepare($stmt) or die "prepare: $stmt: $DBI::errstr";
       $sth->execute() or die "execute: $stmt: $DBI::errstr";
    }