7ac795d55c68c45af01cdccf605e129833bbe871
[ccbs] / html / do-set-paid.pl
1 #! /usr/bin/perl
2
3 use ccbs;
4 use strict;
5 use warnings;
6
7 my $dbh = ccbs::db_connect();
8 my $cgi = new CGI;
9
10 my $tournament = $cgi->param('tournament');
11 my $player = $cgi->param('player');
12 my $paid = $cgi->param('paid');
13
14 $dbh->do('UPDATE tournamentparticipation SET paid=? WHERE tournament=? AND player=?',
15         undef, $paid, $tournament, $player);
16
17 ccbs::print_see_other('registration.pl?id=' . $tournament);
18
19 $dbh->disconnect;