diff --git a/f20-budget.pl b/f20-budget.pl index fe63a61..34cb23d 100644 --- a/f20-budget.pl +++ b/f20-budget.pl @@ -871,7 +871,7 @@ END } print_subtitle("Materials"); - while (my $recordem = $sthef->fetchrow_hashref) { + while (my $recordem = $sthem->fetchrow_hashref) { my $cost = $recordem->{cost}; $display_cost = sprintf "%.2f",$cost; $display_cost =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g; ## add commma @@ -885,7 +885,7 @@ END print_subtitle("Miscellaneous"); - while (my $recordex = $sthef->fetchrow_hashref) { + while (my $recordex = $sthex->fetchrow_hashref) { my $cost = $recordex->{cost}; $display_cost = sprintf "%.2f",$cost; $display_cost =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g; ## add commma