title: I want to store Ids in data base column
body: <p>I have  data table with check box when I select multiple rows I get ids. When I select 2 rows the output is like this <code>2,3</code> in alert box I want to store the ids in one data base column </p>
  
  <p>This is My code:</p>
  
  <pre><code> $('#create_challan').click(function () {
    //alert('Dispatch Challan submit');
  
          var allVals = [];
          var saleid = [];
          /*var buttonp = $(this);
              buttonp.addClass('disabled');
              buttonp.text("Working");*/
          $('input[name=selectedBilties]:checked').each(function() {
            allVals.push($(this).val());
            saleid.push($(this).attr('saleid'));
          });
  
          alert(allVals);
    function allAreEqual(aarray){
      if(!aarray.length)  return false;
      return aarray.reduce(function(a, b){return (a === b)?a:(!b);}) === aarray[0];
      }
  </code></pre>
  
  <p>How can I Store that ids in database.</p>