8 my $id = $cgi->param('id');
10 my $dbh = ccbs::db_connect();
12 my $tournament = $dbh->selectrow_hashref('SELECT * FROM tournaments NATURAL JOIN seasons NATURAL JOIN countries NATURAL JOIN machines NATURAL JOIN scoringsystems WHERE tournament=?', undef, $id);
13 my $ref = $dbh->selectrow_hashref('SELECT count(*) AS num_registered FROM tournamentparticipation WHERE tournament=?', undef, $id);
14 my $num_registered = $ref->{'num_registered'};
17 ccbs::process_template('start-tournament.tmpl', $tournament->{'tournamentname'}, {
18 tournament => $tournament,
19 num_registered => $num_registered