title: Update a table of information on a button click
body: <p>I have a table which will select information from a database and display it, I'm wondering if anyone can provide a code for me to update a column on the click of a button?</p>
  
  <p>Example Table: (Access=Boolean)</p>
  
  <pre><code>ID   -   Name   -   Access
  ---------------------------
  1   -   John    -    1
  ---------------------------
  2   -   Ben     -    1
  ---------------------------
  3   -   Terry   -    0
  ---------------------------
  </code></pre>
  
  <p>My exisiting button is based on bootstrap,</p>
  
  <pre><code>    &lt;button type=\"button\" id=\"passed\" class=\"btn btn-success btn-flat\"&gt;&lt;i class=\"fa fa-check\"&gt;&lt;/i&gt;&lt;/button&gt;
      &lt;button type=\"button\" id=\"insufficient\" class=\"btn btn-danger btn-flat\"&gt;&lt;i class=\"fa fa-times\"&gt;&lt;/i&gt;&lt;/button&gt;
  </code></pre>
  
  <p>I was hoping for something like this, ONCLICK button1 Run $Allowed SQL
  ONCLICK button2 Run $NotAllowed SQL</p>
  
  <pre><code>$allowed = mysqli_query($conn," UPDATE users SET Access = "1" WHERE id = '27' ");     
  $notallowed = mysqli_query($conn," UPDATE users SET Access = "0" WHERE id = '453' ");
  </code></pre>