Hello! Gentlemen, dear gurus, please tell me. There is a table:
This whole thing is generated like this:
<table style="border:1px solid #ccc;width:300px;"> <?php $t = 0; $bg = 0; for($i=0;$i<35;$i++){ if($bg < 5){ $bgr = 'fff'; }else{ $bgr = 'ccc'; } ?> <tr style="background:#<?php echo $bgr; ?>;text-align:center;"> <?php for($j=0;$j<3;$j++){ ?><td><? echo $t; ?></td><? $t++; } ?> </tr> <?php $bg++; if($bg == 10){ $bg = 0; } } ?> </table> How to modify the above code to add cells to this table, vertically combining 5 horizontal ones generated in a loop. The result should be like this:
I just can't catch up with how to organize it in a running cycle. Tell me please. Thank!

