]> git.sesse.net Git - ccbs/blob - html/do-set-paid.pl
Update the wiki parser and the EM2 SQL to match the new feet rating data.
[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;