title: Assign row value to button
body: <p>Is there a way to assign database row value to button, so when I press delete or edit, it affects only that specific row. At the moment $personData[0] is row ID.
  Here is little piece of my code which creates table with data and buttons.</p>
  
  <pre><code>&lt;?php if (!empty($dataArray)) : foreach ($dataArray as $person) { ?&gt;
              &lt;?php $personData = explode(";", $person); ?&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;?php echo $personData[0]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $personData[1]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $personData[2]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $personData[3]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $personData[4]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $personData[5]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo $personData[6]; ?&gt;&lt;/td&gt;
                      &lt;td&gt;
                      &lt;form method="POST"&gt;
                      &lt;button name="btnEdit" value="" class="btn btn-warning"&gt;Edit&lt;/button&gt;
                      &lt;button name="btnDelete" value="" class="btn btn-danger"&gt;Delete&lt;/button&gt;
                      &lt;/form&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
          &lt;?php } endif; ?&gt;
  </code></pre>