Bonjour,
Excusez-moi, j'ai fait une table html qui doit contenir photo et texte en dessous de la façon suivante voir image :
Le problème, je ne sais pas comment l'afficher dynamiquement. Voici mon code. Pourriez-vous SVP me donner un coup de pouce ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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)) { }D'avance je vous remercie beaucoup.
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 <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>
Partager