Bonjour,
j'ai un tableau html qui doit avoir 4 colonnes, Mais mon tableau php est vrariable
Merci
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 $nb_colonnes=4; foreach ($result as $ligne) { for($j=1;$j<=$nb_colonnes;$j=$j+1) {?> <td> <a href="http://www.mmmm.com/images/"> <img src="img/ttt.png" alt="' /> :: date de mise en ligne:<?php echo date('d/m/Y à H\hi', $timePhoto);?> </a><br /> <label for="'.$nom.'">Voter</label><br /> <input type="radio" name="votePhotos[]" id="<?php echo $id;?>" value="<?php echo $nom;?>" /> </td><?php } }?>
Partager