title: create dynamically table from mysql result with rowspan
body: <p>I create a HTML table from Mysql output in this way:</p>
  
  <pre><code>$i = 0;
  while ( $row = mysql_fetch_assoc($result) ) {
      if ( $i == 0 ) {
          echo "&lt;tr&gt;";
          foreach ( array_keys($row) as $fieldName ) echo "&lt;th&gt;".$fieldName."&lt;/th&gt;";
          echo "&lt;/tr&gt;";
      }
      echo "&lt;tr&gt;";
      foreach ( $row as $value ) echo "&lt;td&gt;".$value."&lt;/td&gt;";      
      echo "&lt;/tr&gt;";   
      $i++;
  }
  </code></pre>
  
  <p>If there are two or more identical cells with one another in a column, then this cells should be automatically <strong>joined</strong> using the HTML attribute <code>rowspan</code></p>
  
  <p>I am not able to find a solution for dynamically create a table with joined cells in the same <strong>column</strong>.</p>