Salut les amis,
j'ai besoin de votre aide, je veux afficher 4 image par ligne, avec ce code, pouvez vous me dire ou je dois placer la fonction for dans ce code.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
 <table align="center">
                <?php $rows = $rows->result();
                foreach ($rows as $results => $item): ?>
                    <td>
                        <h6 align="center"> <?php echo $item->id; ?> :<br /></h6>
                        <?php echo '<a href=' . base_url() . $item->path . ' rel="imagezoom[images]" title=' . $item->comment . ' />' ?>
                            <?php echo '<img src=' . base_url() . $item->path . '  width="100" rel="imagezoom"/>' ?><br />
                        <!--?php echo $item->comment; ?> <br/-->
                    </td>
                <?php endforeach; ?>  
            </table>
Merci