title: How to make an SQL query from a clickable image in PHP
body: <p>I'm setting up a new Web-Site and i want to ask you about a function that i want to add.</p>
  
  <p>I have a page that the user can delete a product (row from MySQLi table)</p>
  
  <p>So far i add an image that is changed on hover</p>
  
  <pre><code>   &lt;hmtl&gt;
     ...
     &lt;h6&gt;
       &lt;div class="Delete_product"&gt;
        //here user can press the delete image 
        // and i want to make an SQL Query like
        // "DELETE FROM `products` WHERE `products`.`product_id` = 8"
       &lt;/div&gt;
  
      &lt;/html&gt;
  </code></pre>
  
  <p>and the CSS that changes the delete image on hover</p>
  
  <pre><code>css
  
  .Delete_product                   {
     background-image:url('../code/Images/Buttons/DELETE.png');
     width: 330px; 
     height: 40px;
     background-position:center;
     background-repeat: no-repeat;   }
  
  .Delete_product:hover              {
    background-image:url('../code/Images/Buttons/DELETE_active2.png');
    width: 330px; 
    height: 40px;
    background-position:center;
    background-repeat: no-repeat;    }
  </code></pre>
  
  <p>How to execute the SQL DELETE Query when the user press DELETE (image) and in second time ask him again</p>
  
  <p>(like: are you sure that you want to delete this product)</p>