"; 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
");
$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 "";
mysql_close($db_connection);
include("piedDePage.php");
?>