title: creating multiplication table using php
body: <p>I'm trying to create multiplication table using php as follows:</p>
  
  <pre><code>&lt;?php
  
  $cols = 10;
  $rows = 10;
  ?&gt;
  </code></pre>
  
  <p>... lot of html code ...</p>
  
  <pre><code>&lt;?php
  
  echo "&lt;table border=\"1\"&gt;";
  
          for ($r =0; $r &lt; $rows; $r++){
  
              echo('&lt;tr&gt;');
  
              for ($c = 0; $c &lt; $cols; $c++)
                  echo( '&lt;td&gt;' .$c*$r.'&lt;/td&gt;&lt;/tr&gt;');
  
          }
  
          echo("&lt;/table&gt;");
  
  ?&gt;
  </code></pre>
  
  <p>I probably miss something but can't figure out what is it.</p>
  
  <p>Any advices would be appreciated, thanks!</p>