Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <table width="100%">
  2.   <tr>
  3.     <?php
  4.     $count = 1;
  5.     foreach($arraymitbildas as $bild) { // oder while
  6.       if($count <= 5) {
  7.         $count++;
  8.         echo '<td width="20%"></td>';
  9.       } else {
  10.         echo '</tr><tr>';
  11.         echo '<td width="20%"></td>';
  12.         $count = 1;
  13.       }
  14.     }
  15.     ?>
  16.   </tr>
  17. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement