Je cherche le moyen d'afficher le resultat d'une boucle do while a l'horizontal avec un maximum de 3 colonne.
Voici mon code:
<?php
$client = 000 ;
$row_code_client['date'] = date("dmy");
do { ?>
<table width="300" border="1">
<tr>
<td align="center" valign="middle">
<?php
$filename= ($str_client = str_pad($client, 3, "0", STR_PAD_LEFT) .".png");
QRcode::png(($row_code_client['prefix'] . $row_code_client['photographe'] . $row_code_client['date'] . $row_code_client['carte'] . ($str_client = str_pad($client, 3, "0", STR_PAD_LEFT) ) . $row_code_client['magazin'] . $row_code_client['sufix']), $filename,'S',3,1);
echo '<img src="'.$filename.'" /><br>';
echo $row_code_client['photographe']; ?><?php echo $row_code_client['date']; ?><?php echo $row_code_client['carte']; ?><?php $str_client = str_pad($client, 3, "0", STR_PAD_LEFT);
print "$str_client"; ?><?php echo $row_code_client['magazin'] . '<br />';
$client++ ; ?>
</td>
</tr>
</table>
<?php } while($client<$row_code_client['nb_client']); ?>
Actuelement ca s'affiche en continue a la verticalMerci de votre aide