title: Save runtime created table data into database
body: <p>I create one form which includes two text box &amp; one submit button,when i enter number of rows &amp; columns and click on submit button that number of rows &amp; columns table structure would be generated on form,when i enter data into that table I want to save that data into database.  please if you have any demo example then please give Its urgent for me Thanks in advance..</p>
  
  <p>Here is my PHP code:</p>
  
  <pre><code>&lt;?php
   include_once "dreportCreation.php";
          {       
              if(isset($_POST['submit']))
                  function displaydata($column,$rows)             
                      {       
                          echo "&lt;table border='1' align='center'&gt;";           
                          for($i = 0;$i&lt;$_POST['column'];$i++)       
                          { 
                              echo "&lt;tr&gt;".$j."&lt;/tr&gt;";                              
                              for($j = 0; $j &lt;$_POST['rows'];$j++)         
                                  {
  
                                      echo "&lt;td&gt;" ."&lt;input type=\"text\" name='$i'&gt;"."&lt;/td&gt;"; 
                                  }
                          }
                          echo "&lt;/table&gt;";
                      }
          }
      ?&gt;
      &lt;html&gt;
      &lt;head&gt;
      &lt;title&gt;aa&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form name="reportCreation" method="post" action="dd.php"&gt;
                          &lt;label for='Table'&gt;Define Table&lt;/label&gt;
                          &lt;label for='rows'&gt;Row&lt;/label&gt;
                          &lt;input type="text" name="column"&gt;&lt;/input&gt;
                          &lt;label for='column'&gt;Column&lt;/label&gt;
                          &lt;input type="text" name="rows"&gt;&lt;/input&gt;
                          &lt;input type="submit" name="submit" value="submit" onclick="displaydata();"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>