title: How to delete a file from upload folder
body: <p>I am trying to delete a photo from upload folder when i press delete all records are deleted except the picture in upload folder here is my delete, how to i code the snippet to delete from upload folder</p>
  
  <pre><code>//trigger
  &lt;?php 
  echo '&lt;td&gt;&lt;a href="delete.php?staff_id=' . $row['staff_id'] . '"&gt;&lt;input type="button" onclick="confirmDelete(event)" value="delete"&gt;';
  
  // check if the 'staff_id' variable is set in URL, and check that it is valid
  if (isset($_GET['staff_id']) &amp;&amp; is_numeric($_GET['staff_id']))
  {
      // get staff_id value       
      $staff_id = $_GET['staff_id'];
  
      // delete the entry
      $result = mysql_query("DELETE FROM development WHERE staff_id=$staff_id") or die(mysql_error()); 
  }
  </code></pre>