"; $nbeleve = $_POST['eleve']; if(isset($_POST['modif'])){ $sql = "UPDATE bdsports.eleves SET PrenomEleve='".$_POST['prenom']."', NomEleve='".$_POST['nom']."', SexeEleve='".$_POST['sexe']."', ClasseEleve='".$_POST['classe']."' WHERE NoEleve ='".$nbeleve."'"; $repclients = $bdd->query($sql); } $rqclients = "SELECT * FROM bdsports.eleves WHERE NoEleve='".$nbeleve."' LIMIT 1"; $repclients = $bdd->query($rqclients); $c = $repclients->fetch(); echo "

Modification d'un élève

"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Prénom:
Nom:
Sexe:"; $sexes = array('F', 'M', 'A'); for ($i=0; $i  "; } echo "
Classe:
"; echo ""; echo "
"; echo "
"; echo "
"; echo ""; echo "


"; echo "
"; echo ""; ?>