- or download this
my $branches = $sth->fetchall_arrayref();
...
$template->param( branches => $branches );
- or download this
my $branchaoh = \$selbranch;
- or download this
my $branchaoh = \@selbranch;
- 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";
}