title: How to make a working delete/update button per row in the database
body: <p>I'm working on an admin-page for my website.
  So far I can  get the title of my project out of the database and show it on my admin-page. I have multiple titles on my project page, but I want a delete and update button for every title and when I click on one of those buttons I want to delete or edit that specific title.
  This is my code so far:</p>
  
  <pre><code>$result = $db-&gt;query("SELECT * FROM projects");
  
  if($result-&gt;num_rows != 0) {
  
  while ($rows = $result-&gt;fetch_assoc()) {
      $title_ = $rows["Title"];
  
      $projects[] = "&lt;div class='row'&gt;
          &lt;div class='project'&gt;
              &lt;input type='text' class='form-control title' value='$title_'/&gt;
              &lt;button type='button' class='btn' name='updateProject'&gt;Save Changes&lt;/button&gt;
              &lt;button type='button' class='btn' name='deleteProject'&gt;Delete Project&lt;/button&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;";
  }
  }
  </code></pre>
  
  <p>All the titles are in <code>$projects[]</code>, and for every <code>$project</code> in the database the title gets placed in an <code>&lt;input&gt;</code> and for every <code>$project</code> it adds 2 buttons (delete and edit).
  Does anyone know how I can make those button work per title? So if I click on the delete button of a specific title, I only want to delete that specific title.</p>