Code:
<?php $cols = 10; $rows = 10; for ($r =1; $r < $rows; $r++){ echo('<tr>'); for ($c = 1; $c < $cols; $c++) echo( '<td>' .$c*$r.'</td>'); echo('</tr>'); } echo("</table>"); ?>
<?php $cols = 10; $rows = 10; for ($r =1; $r < $rows; $r++){ echo('<tr>'); for ($c = 1; $c < $cols; $c++) echo( '<td>' .$c*$r.'</td>'); echo('</tr>'); } echo("</table>"); ?>
Comment