I'm attempting to add a little functionality to a DBMan database and have run into a snag. How can I search the returned search results to come up with results totals? My database will have the date, score, opponent, and result of a hockey team's games. [Go to http://cgibin.erols.com/...d=&view_search=1 to see what I have so far.] When results are returned, I'd like to then be able to show the combined record (Won-Lost-Tied) at the top of the page based on the search criteria. I've tried putting the following in the sub html_view_success of the html.pl file with no luck:
$games_won=0;
for (0 .. $numhits - 1) {
if ($rec{'Result'} eq "Won") {
$games_won++;
}
}
Any ideas/suggestions? Thanks in advance for any help.
$games_won=0;
for (0 .. $numhits - 1) {
if ($rec{'Result'} eq "Won") {
$games_won++;
}
}
Any ideas/suggestions? Thanks in advance for any help.

