title: How give index number to table cell using row number and column number
body: <p>I have 10*10 fixed table that print two for loops.
  Some images are shown in some given <code>table cell</code> witch match the given row id and column id from admin.</p>
  
  <pre><code>$table .= '&lt;table border="1" cellspacing="0" cellpadding="2" class="banner_table"&gt;';
      for($x=1; $x&lt;=10; $x++) {
         $table .= "&lt;tr&gt;";
         for($y=1; $y&lt;=10; $y++) {
             $table .= "&lt;td class='thumbnail'&gt;";
  
                  if (isset($temp[$x][$y])) {
                      $count++;  
                      $table .= "&lt;a target='_blank' href='" . ($temp[$x][$y]['img_url'] ? $temp[$x][$y]['img_url'] : "#") . "'&gt;
                      &lt;img id='imgid' src='admin/small-image/" . $temp[$x][$y]['img_title'] . "' width='20' height='20' /&gt;&lt;/a&gt;";                   
                  }  
             else $table .="&amp;nbsp;";
             $table .= "&lt;/td&gt;"; 
          }
          $table .= "&lt;/tr&gt;";
     }
     $table .= '&lt;/table&gt;';
  </code></pre>
  
  <p>How should I give index number such as 1,2,2... for the table cell without given <code>row id</code> and <code>column id</code> ? I want to give index no 1 (ROW 1 AND COL1), Index no 2 (ROW1 and COL2) likewise. </p>
  
  <p>Is there any methods to get table cell number from row id and column id? </p>