title: How to store the retrieved HTML table values in the database?
body: <p>Here i am retrieving the whole html table values using jquery.What I need is to store these retrieved values in the database table.Here is my code</p>
  
  <pre><code>$(function () {
       var message = $('#message');
       var table = $('#tbl');
       table.bind('click', function(){
           var values = '';
           var valArray = new Array();             
           var j = 0;
           var tr = $(this).find('tr');
           tr.each(function(){
               var i = 0;
               valArray[j] = new Array();
               var tds = $(this).find('td');
               $.each(tds, function (index, item) {
                   values = values + 'td' + (index + 1) + ':' + item.innerHTML + '&lt;br/&gt;';
                   valArray[j][i] = 'td' + (index + 1) + ':' + item.innerHTML + '&lt;br/&gt;';
                   i++;
               });
               j++;
           });
           message.html(values);
           //valArray is having the data organized in an bidimensional array style
       });                                    
   });
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;table id="tbl" style="border: solid 1px black"&gt; 
          &lt;tr&gt; 
              &lt;td&gt; 
                  1 
              &lt;/td&gt; 
              &lt;td&gt; 
                  a 
              &lt;/td&gt; 
          &lt;/tr&gt; 
          &lt;tr&gt; 
              &lt;td&gt; 
                  2 
              &lt;/td&gt; 
              &lt;td&gt; 
                  b 
              &lt;/td&gt; 
          &lt;/tr&gt; 
  &lt;/table&gt; 
      &lt;br /&gt; 
      &lt;div id="message"&gt; 
      &lt;/div&gt; 
  </code></pre>
  
  <p>Any suggestion?</p>