X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-unregister.pl;fp=html%2Fdo-unregister.pl;h=3751e30325da2071dd5994bd94aa6b5399546836;hp=0000000000000000000000000000000000000000;hb=566480373f7e1f45b748c7a0f34dcfed5c318730;hpb=581c820151f988c2470c03d56dbca071432180ca diff --git a/html/do-unregister.pl b/html/do-unregister.pl new file mode 100755 index 0000000..3751e30 --- /dev/null +++ b/html/do-unregister.pl @@ -0,0 +1,18 @@ +#! /usr/bin/perl + +use ccbs; +use strict; +use warnings; + +my $dbh = ccbs::db_connect(); +my $cgi = new CGI; + +my $tournament = $cgi->param('tournament'); +my $player = $cgi->param('player'); + +$dbh->do('DELETE FROM tournamentparticipation WHERE tournament=? AND player=?', + undef, $tournament, $player); + +ccbs::print_see_other('registration.pl?id=' . $tournament); + +$dbh->disconnect;