1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
<head>
<title>RADS Volley ball team</title>
<link rel="stylesheet" href="Style.css" type="text/css">
</head>
<body>
<center><table border="2">
<tr>
<td width="50"valign="left"><html><body>
<left><table width="640" height="480" border = "1">
<tr>
<td class="menu" style="width:150"><a href='Equipes.php' class="style1">Equipes</a>
<br>
<a href='RADS/Historique.php'>Historique</a>
<br><a href='RADS/Staff.php'>Staff</a>
<br><a href='liens.php'>liens</a>
<br><a href='webmaster.php'>Webmaster</a></td>
<td width="502"height="480"valign="top">
<img src ="logorads.png" width="41" height="47">Administration
<br><form name="form1" method="post" action="">
<br>
<?php
require ('config.php');
mysql_connect ($db_server, $db_user, $db_pass);
mysql_select_db($db);
echo "<select name='Equipe'>";
$req_table="SELECT nom, division, sexe FROM Equipe";
$req_result=mysql_query($req_table);
while(list($nom, $division, $sexe)=mysql_fetch_row($req_result))
{
echo "<option value=' $nom $division $sexe'>$nom $division $sexe</option>";
}
echo "</select>";
mysql_close();
?>
<input type=submit value=Submit>
<br><br>
<center> <table border = "1"><tr>
<th>Nom</th>
<th>Prenom</th>
<th>Age</th>
<th>Numero</th>
<th>Position</th>
<th>Taille</th>
</tr>
<?php
$Equipe = $_GET['Equipe'];
// echo 'nom :' . $Equipe ;
mysql_connect ($db_server, $db_user, $db_pass);
mysql_select_db($db);
$retour = mysql_query("select * from joueurs where Equipe = '$Equipe' ")or die (mysql_error());
while ($donnees = mysql_fetch_array($retour))
{
?>
<tr>
<td><?php echo $donnees['Nom'] ?></td>
<td><?php echo $donnees['Prenom']; ?></td>
<td><?php echo $donnees['Age']; ?></td>
<td><?php echo $donnees['Numero']; ?></td>
<td><?php echo $donnees['Position']; ?></td>
<td><?php echo $donnees['Taille']; ?></td>
</tr>
<?php
//}
} // Fin de la boucle
?>
</table> </center>
</td></tr></table></form>
</body>
</html> |