title: Table data to be used in sql string based on specific table row
body: <p>I have php script that query's my database and pulls the data based on <code>acceptance</code> field value. </p>
  
  <pre><code>SELECT * from database WHERE acceptance = 1
  </code></pre>
  
  <p>This works well. My PHP script then loops through the returned object populating a table </p>
  
  <p><strong>Booking ID       Accept         Decline</strong></p>
  
  <pre><code>123          Yes     No
  </code></pre>
  
  <p>Where the <code>Yes/No</code> string is above, there are clickable icons that talk to a JavaScript function.</p>
  
  <p>So my question, I need to have an ajax call so once the user clicks the accepted icon the JavaScrip will take the booking id and use this in the update query dynamically</p>
  
  <pre><code>UPDATE accepted in Bookings Where userid = $clickedRowData
  </code></pre>
  
  <p>Thanks in advance.</p>