public function SQLDelete($table, $idTable, $idValue) { $inst = cbSQLConnectConfig::CreatePDOInstance(); $query = sprintf("DELETE FROM %s WHERE %s = :value", $table, $idTable); $stmt = $inst->prepare($query); $stmt->bindParam(":value", $idValue); $result = $stmt->execute(); $stmt->closeCursor(); $inst = null; return $result; }