Arf, oui je connais l'html et j'ai tenté de rajouter les cellules mais ce sont les " } " qui me trompent.
J'ai essayé ça mais ça marche pas:
<?
echo("<TABLE>\n<TR>\n<TD>\n" );
$req=mysql_query("Select DISTINCT t1.nom,t1.id, count(t2.id_sujets) As nbr FROM themes As t1 LEFT join citations As t2 On t1.id=t2.id_sujets group by t1.nom" )or die(mysql_error());
$nbrows = mysql_num_rows($req);
$parcolonne = $nbrows/3;
$colnum = 1;
$nblignes = 0;
while ($ligne_themes=mysql_fetch_object($req))
{
$nbligne++;
echo ' '.'<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#C6BFE8">'.("<B>.</B> <a href=\"index.php?p=scriptsphp3/citations/citations&id=$ligne_themes->id\">$ligne_themes->nom</a> ($ligne_themes->nbr)" ).'<BR>';
if(($nbligne >= $parcolonne) && ($colnum == 1))
{
echo("</TD>\n<TD>\n" );
$colnum = 2;
echo ("</TD>\n<TD>\n" );
$colnum = 3;
}
}
echo("</TD>\n</TR>\n</TABLE>\n" );
?>
[jfdsdjhfuetppo]--Message édité par ludo2604--[/jfdsdjhfuetppo]
---------------
Make Portraits, Not War!