Bonjour,
voila mon code:
et sa m'affiche :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 $Sql= mysql_query("SELECT n.note,m.matiere_nom,e.nom,e.prenom FROM note n INNER JOIN matiere m ON m.matiere_id=n.matiere_id INNER JOIN eleve e ON e.eleve_id=n.eleve_id ORDER BY m.matiere_nom;")or die(mysql_error()); $Sql2 = mysql_query("SELECT m.matiere_nom FROM note n INNER JOIN matiere m ON m.matiere_id=n.matiere_id;")or die(mysql_error()); while($donne2 = mysql_fetch_array($Sql2)){ echo $donne2['matiere_nom'].'<br>'; } //boucle pour afficher while($donne = mysql_fetch_array($Sql)){ echo $donne['note'].'<br>'; }
français
français
français
français
math
math
math
math
13.0
15.0
15.0
15.0
12.0
11.5
11.4
11.5
les 4 premieres notes corresponts au francais
et les dernieres au math
j'aimerai savoir comment je peux afficher:
français
13.0
15.0
15.0
15.0
math
12.0
11.5
11.4
11.5
je sais pas si s'est bien expliqué
merci
Partager