title: error with adding data in DB
body: <p>I am doing a theater online reservation systen and I am about to add seatid to mysql DB when user reserve.</p>
  
  <p>this is my code to output id of seats when user click on button ShowNewSeat </p>
  
  <pre><code>  &lt;input type="button" id="ShowNewSeat" value="Show Selected Seats" name="ShowNewSeat" /&gt;
  
  
  $('#ShowNewSeat').click(function () {
              var str = [], seatid;
              $.each($('#place li.' + selectingSeatCss + ' a'), function (index, value) {
                  seatid = $(this).attr('title');                   
                  str.push(**seatid**);                   
              });
              alert(str.join(','));
          })  
  </code></pre>
  
  <p>this code let user see the output of what seatid he clicked  </p>
  
  <p>now for the php file, i have used $_POST[] but it is not working, i need a way to add the <strong>seatid</strong> variable in a Database.</p>
  
  <p>Appreciate any help guys...thnk u</p>