title: mysqli DELETE ahref not functioning
body: <p>I have a Delete link listed beside all <code>$rows</code>, when I mouse over them they reflect the correct id for deletion, however, when I click <code>DELETE</code> I get redirected to <code>phpfile.php?id=4</code>, for example, and nothing is deleted, no errors are posted.</p>
  
  <pre><code>while ($row = mysqli_fetch_array($r,MYSQLI_ASSOC))
  {
      echo '&lt;tr&gt;&lt;td align="left"&gt;' .
      $row['title'] . '&lt;/td&gt;&lt;td align="left"&gt;'
      . $row['genre'] . '&lt;/td&gt;&lt;td align="left"&gt;'
      . $row['length'] . '&lt;/td&gt;&lt;td align="left"&gt;'
      . $row['created'] . '&lt;/td&gt;&lt;td align="left"&gt;'
      . $row['views'] . '&lt;/td&gt;&lt;td align="left"&gt;'
      . "&lt;a href='newwriter_profile.php?id={$row['upload_id']}'&gt;Delete&lt;/a&gt;&lt;/td&gt;" .      '&lt;/tr&gt;';
  }
  echo '&lt;/table&gt;'; // Close the table
  </code></pre>
  
  <p>The remainder of the code, existing on the same page:</p>
  
  <pre><code>if(isset($_GET['id'])) {
  // Get the ID
  $id = intval($_GET['upload_id']);
  
  
  require_once ('../mysqli_connect.php'); //Connect to the db
  
  
  
  
      $delquery = "
          DELETE 
          FROM upload
          WHERE upload_id = {$id}";
      $done = @mysqli_query ($dbc, $delquery); // Run the query
  
      if($done) {
          // Make sure the result is valid
          if (mysqli_num_rows($done)==1) {
          echo 'Record Deleted';
          }
          else {
              echo 'error - delete failed';
          }
  
          // Free the mysqli resources
          @mysqli_free_result($result);
      }
      else {
          echo "Error! Query failed:" .$mysqli_error($dbc);
      }
      mysqli_free_result($done);
      mysqli_close($dbc);
  }
  </code></pre>
  
  <p>If I can solve this bug I will solve a similar bug except with a Download function.</p>