title: Delete records in mysql database with query in link
body: <p>I have a MySQL database and with a php function i made a table is created to view the content.
  Now i have an image (a little red cross). Now i want that if the user click's on the image a delete query is executed. But i don't know how.</p>
  
  <pre><code>$column = array_keys($array[0]);
  
   echo "&lt;table border='1'&gt;";
              echo "&lt;tr&gt;";
              foreach($column as $title)
              {
  
                  echo "&lt;td width='100px'&gt;$title&lt;/td&gt;";
  
              }
              echo "&lt;/tr&gt;";
  
              echo "&lt;tr&gt;";
              foreach($array as $row)
              {
                  foreach($row as $item)
                  {
                      echo "&lt;td&gt;$item&lt;/td&gt;";
                  }
  
                   echo '&lt;td&gt;&lt;img src="delete_button.png value="'.$row['id'].'"" /&gt;&lt;/td&gt;'; //the button and the id as value
                  echo "&lt;/tr&gt;";
              }
  
              echo "&lt;/table&gt;";
  </code></pre>