if (/^ <tr><td \s* class=dtd> .*? class="link"> (.*?) <\/a> $/x) {
$player = $1;
printf "INSERT INTO players (nick) VALUES ('%s');\n", $player;
+ printf "INSERT INTO roundparticipation (tournament, round, parallel, player) VALUES (\n";
+ print " (SELECT tournament FROM tournaments WHERE name='$name'),\n";
+ print " $round, $group,\n";
+ print " (SELECT player FROM players WHERE nick='$player')\n";
+ print ");\n";
}
# Player's results (score)