1 pièce(s) jointe(s)
Comment afficher le résultat d'une données mysql dans une table html ?
Bonjour,
Excusez-moi, j'ai fait une table html qui doit contenir photo et texte en dessous de la façon suivante voir image :
http://www.developpez.net/forums/att...1&d=1267348454
Le problème, je ne sais pas comment l'afficher dynamiquement. Voici mon code. Pourriez-vous SVP me donner un coup de pouce ?
Code:
1 2 3 4 5 6 7
| $requeteselection = " SELECT * FROM listeselection WHERE lang='$mylang' ORDER BY IDT ASC";
$reqselection = mysql_query($requeteselection);
$total = mysql_num_rows($reqselection);
while($myselection = mysql_fetch_array($reqselection))
{
} |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <table width="350" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td height="19" valign="top"><a href="#"><img src="'.$myselection['photo'].'.jpg" width="109" height="150" border="0" title="'.$myselection['titre'].'" class="bord" /></a></td>
<td valign="top"><!--DWLayoutEmptyCell--> </td>
<td valign="top"><a href="#" ><img src="'.$myselection['photo'].'.jpg" width="109" height="150" border="0" title="'.$myselection['titre'].'" class="bord" /></a></td>
<td valign="top"><!--DWLayoutEmptyCell--> </td>
<td valign="top"><a href="#" ><img src="'.$myselection['photo'].'.jpg" width="109" height="150" border="0" title="'.$myselection['titre'].'" class="bord" /></a></td>
</tr>
<tr>
<td width="110" height="19" valign="top">'.$myselection['titre'].'</td>
<td width="20" valign="top"><!--DWLayoutEmptyCell--> </td>
<td width="110" valign="top">'.$myselection['titre'].'</td>
<td width="20" valign="top"><!--DWLayoutEmptyCell--> </td>
<td width="110" valign="top">'.$myselection['titre'].'</td>
</tr>
</table> |
D'avance je vous remercie beaucoup.