bonjour à tous,
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
 
    <?
	$sqllogin="SELECT login, numredacteur FROM redacteur WHERE 1";
	$resultatlogin=mysql_query($sqllogin);
 
		while($lignelogin=mysql_fetch_row($resultatlogin)) {
				$art=$lignelogin[1]; 
				$login=$lignelogin[0]; 
 
	$sql="SELECT  count(numarticle) FROM article WHERE numredacteur='$art'";
	$resultat=mysql_query($sql);
	while($ligne=mysql_fetch_row($resultat)) 
	{
	$nbmaq=$ligne[0]; 
	if ($nbmaq>0) echo "<a href=\"./index.php?page=pagearticle&nmembre=$login\">$login</a>&nbsp;".$nbmaq."<br>";
	}
	}
	?>
comment puis-je afficher les résultats en fonction de la variable $nbmaq ? l'ORDER BY prend en compte seulement les champs du SELECT ?

merci pour votre réponse