Salut à tous,
J´ai un petit problème au niveau de tableaux en Php.
J´ai une page sur mon site ( http://graphiworld.free.fr/?page=3 ) qui récupère sur une base de donnée des informations pour les afficher dans des tableaux.
A chaques fois que le script trouve une entrée dans la base, il creer un nouveau tableau.
J´aimerais afficher 3 tableaux par ligne mais comme deux tableaux ne peuvent pas ce coller, il n´y a qu´un seul tableau par ligne.
Comment faire ? Voici le code php qui affiche les tableaux :
<?
include("connect.php");
$req = mysql_query(sprintf("SELECT description,id FROM tutoriaux ORDER BY `id` ASC"));
while($res = mysql_fetch_array( $req ))
{
$id = $res[´id´];
$description = $res[´description´];
echo ´<table width="244" height="100" border="0" cellspacing="0" cellpadding="0" background="images/last_tuto.gif"><div align="LEFT"></div>´;
echo ´ <tr>
<td height="33" colspan="4"></td>
</tr>
<tr>
<td width="15" height="53"></td>
<td width="58"><img src="images/img´.$id.´.jpg" width="53" height="53"></td>
<td width="156" valign="top">
<div align="left"><span
class="Textenewtuto">´.$description.´</span></div>
</td>
<td width="15"></td>
</tr>
<tr>
<td height="14" colspan="4"></td>
</tr>
´;
}
echo´</table>´;
mysql_close();
?>
Merci