Help for this page

Select Code to Download


  1. or download this
    ...code sql connect...
    my $year = param('year') || ''; # for testing only
    ...
    where acc = '12345' and ( (year='$year') or (year = $year + 1) )";
    my $res= $dbh->exec_select( $sql );
    ...code
    
  2. or download this
    ...code
    my $year = param('year') || ''; # for testing only
    ...
    from mytable
    where acc = '12345' and ( (year='$year') or (year = $year + 1) )";
    ...code