title: Delete from table with variables not working
body: <p>I want to delete from my table this is the function,</p>
  
  <pre><code>function deleteFromTable($table, $file_upload_id, $dbh) {
      $deleteTable = $dbh-&gt;prepare("DELETE FROM ".$table." WHERE upload_id = ?");
      $deleteTable-&gt;execute(array($file_upload_id));
      $deleted = $dbh-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      print_r($deleted);exit;
  }
  deleteFromTable('reimbursment_id', '76', $dbh);
  </code></pre>
  
  <p>I'm getting no error and its not removing anything from my table; But when I tried to do without the variables it works perfectly, whats wrong with this code?</p>