"; echo "

Liste des matchs qui dont on ne connait pas l'horaire.

"; include("conf.php"); include("mysql_compat.php"); include ("conf.php"); $db_connection=mysql_connect($db_host,$db_user,$password); mysql_select_db($db_name,$db_connection); //////////////////////////////////////////RECHERCHE DES MATCH DU TOURNOI QUI N'ONT PAS D'HORAIRE/////////////// $ext=0; for($i=0;$i"); while($reptab=mysql_fetch_array($reponse)){ $list_tour[$ext][tour]=$['']; $list_tour[$ext][avencement]=$['']; $list_tour[$ext][id_categorie]=$[''][$i]; $list_tour[$ext][description]=$[''][$i]; $ext++; } } $tab_classement=array("0 ou mieux","1/6","2/6","3/6","4/6","5/6","15","15/1","15/2","15/3","15/4","15/5","30","30/1","30/2","30/3","30/4","30/5","NC"); for($i=0;$i"); while ($reptab=mysql_fetch_array($reponse)){ if ($[''][0]!='Q') $joueur1=$['']; else { $no_match=explode("Q",$['']);$no_match=$no_match[1]; $requete2="SELECT vainqueur FROM `match` WHERE id_match='".$no_match."'"; $reponse2=mysql_query($requete2,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."
"); $reptab2=mysql_fetch_array($reponse2); $joueur1=$['']; } if ($[''][0]!='Q') $joueur2=$['']; else { $no_match=explode("Q",$['']);$no_match=$no_match[1]; $requete2="SELECT vainqueur FROM `match` WHERE id_match='".$no_match."'"; $reponse2=mysql_query($requete2,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."
"); $reptab2=mysql_fetch_array($reponse2); $joueur2=$['']; } $match=""; if ($joueur1) { $requete2="SELECT nom, prenom, classement, id_inscription FROM `inscription`,`joueur` WHERE inscription.id_inscription = '$joueur1' AND inscription.joueur=joueur.id_joueur;"; $reponse2=mysql_query($requete2,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."
"); $reptab2=mysql_fetch_array($reponse2); $texte1=$['']." ".$['']." : ".$tab_classement[$['']]; } else{ $texte1=$['']; } if ($joueur2){ $requete2="SELECT nom, prenom, classement, id_inscription FROM `inscription`,`joueur` WHERE inscription.id_inscription = '$joueur2' AND inscription.joueur=joueur.id_joueur;"; $reponse2=mysql_query($requete2,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."
"); $reptab2=mysql_fetch_array($reponse2); $texte2=$['']." ".$['']." : ".$tab_classement[$['']]; } else{ $texte2=$['']; } $list_match[$i][id_match][]=$['']; $list_match[$i][joueur1][]=$texte1; $list_match[$i][joueur2][]=$texte2; } } echo "

"; echo "
"; echo ""; $ext=0; for($i=0;$i"; else echo ""; echo ""; } } echo "
"; echo "
JoueursHoraire
"; echo "
".$list_tour[$i][description].",
Tranche ".$tab_classement[$list_tour[$i][avencement]].",
Tour ".$list_tour[$i][tour]."
".$list_tour[$i][description].",
Tranche ".$list_tour[$i][avencement].",
Tour ".$list_tour[$i][tour]."
"; echo ""; for ($j=0;$j"; echo ""; $ext++; } echo "
".$list_match[$i][joueur1][$j]." Vs ".$list_match[$i][joueur2][$j].""; /*if ($[''][$ext]==$list_match[$i][inscription1][$j]) { $selected_insc1="selected"; $selected_insc2="";echo "**1**";} else if ($[''][$ext]==$list_match[$i][inscription2][$j]) { $selected_insc2="selected"; $selected_insc1="";echo "**2**";} else { $selected_insc2="";$selected_insc1="";echo "**0**";}*/ echo ""; echo "
"; echo "

"; echo ""; echo ""; echo $erreur;$erreur=""; echo "

"; for($i=0;$i"; } } echo ""; echo ""; mysql_close($db_connection); include("piedDePage.php"); ?>