Bonjour,
J'aimerai afficher les enregistrements de ma table groupe deux par ligne car la lorsque je les affiche ils apparaissent tous l'un en dessous de l'autre.
Voici mon code :
Il ne me manque plus que ça à mettre en place et j'ai terminé mais je ne vois pas trop comment faire.
Merci
J'aimerai afficher les enregistrements de ma table groupe deux par ligne car la lorsque je les affiche ils apparaissent tous l'un en dessous de l'autre.
Voici mon code :
<?
$sql = "SELECT num_groupe, nom_groupe, img_groupe FROM groupe Group By num_groupe";
$sql_exe = mysql_query($sql) or die('Erreur : ' . mysql_error());
while ($Tab = mysql_fetch_array($sql_exe))
{
?>
<br><table width="860" height="0" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="860" height="200" valign="top" align="center">
<table width="420" cellpadding="0" cellspacing="0" border="0">
<tr>
<td background="images/cadre_01.gif" width="5" height="5"></td>
<td background="images/cadre_02.gif" width="410" height="5"></td>
<td background="images/cadre_03.gif" width="5" height="5"></td>
</tr>
</table>
<table width="420" cellpadding="0" cellspacing="0">
<tr>
<td background="images/cadre_04.gif" width="5" height="190"></td>
<td background="images/cadre_05.gif" width="410" height="190" valign="top" align="center">
<span class="nom_groupe"><?php echo $Tab["nom_groupe"]; ?>
</span>
<br><br>
<img src="images/<?php echo $Tab['img_groupe']; ?>
">
</td>
<td background="images/cadre_06.gif" width="5" height="190"></td>
</tr>
</table>
<table width="420" cellpadding="0" cellspacing="0">
<tr>
<td background="images/cadre_07.gif" width="5" height="5"></td>
<td background="images/cadre_08.gif" width="410" height="5"></td>
<td background="images/cadre_09.gif" width="5" height="5"></td>
</tr>
</table>
</td>
</tr>
</table>
<?php } ?>
Il ne me manque plus que ça à mettre en place et j'ai terminé mais je ne vois pas trop comment faire.
Merci