]> git.sesse.net Git - ccbs/blob - html/do-unregister.pl
Update the wiki parser and the EM2 SQL to match the new feet rating data.
[ccbs] / html / do-unregister.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
13 $dbh->do('DELETE FROM tournamentparticipation WHERE tournament=? AND player=?',
14         undef, $tournament, $player);
15
16 ccbs::print_see_other('registration.pl?id=' . $tournament);
17
18 $dbh->disconnect;