1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| if($score >= $score2)
{
$req5 = "insert into tour_suivant values ('', '$joueur1');";
$res5=mysql_query($req5);
$req6 ="update qualification set tour='elimine' where name='$joueur2';";
$res6=mysql_query($req6);
$req10 = "update tournoi set tournoi.vainqueur=$joueur1 where nom_tournoi=(select nom_tournoi from tournoi where vainqueur='' order by date_tournoi limit 1)";
$res10=mysql_query($req10);
}
else
{
$req5 = "insert into tour_suivant values ('', '$joueur2');";
$res5=mysql_query($req5);
$req6 ="update qualification set tour='elimine' where name='$joueur1';";
$res6=mysql_query($req6);
$req10 = "update tournoi set tournoi.vainqueur=$joueur2 where nom_tournoi=(select nom_tournoi from tournoi where vainqueur='' order by date_tournoi limit 1);";
$res10=mysql_query($req10);
} |
Partager