for ($count = 1; $count < 20; $count++) {
if ($count == 1 || $count % 4 == 0) {
?> <tr> <?php
}
if (true) {
?> <td><?php echo $count; ?></td> <?php
}
if (($count + 1) % 4 == 0){
?> </tr> <?php
}
this code is running fine but only issue is its not printing new lines in good order after first 2 successful rows print, it exceeds the row by one more , m stuck, need the logic to make it correct. Thanks
Iterate over the rows, then iterate over the columns: