我想从我的表中删除这是功能,
function deleteFromTable($table, $file_upload_id, $dbh) {
$deleteTable = $dbh->prepare("DELETE FROM ".$table." WHERE upload_id = ?");
$deleteTable->execute(array($file_upload_id));
$deleted = $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
print_r($deleted);exit;
}
deleteFromTable('reimbursment_id', '76', $dbh);
我没有收到任何错误,也没有从我的桌子上删除任何东西;但是当我尝试不使用变量时它可以完美运行,这段代码有什么问题?