Pradeep Kumar
<table border="1px"> ?php $col=5; for ( $i=1; $i<=20; $i++){ if(!($i-1 % $col)){ ?> <tr><?php } ?> <td><?php echo $i; ?></td> <?php if(!($i % $col)){?> </tr> <?php }} ?> </table>
No comments:
Post a Comment