function forzardelete($Code) { $parametros = array(); $parametros['CountryCode'] = $Code; $gestor = new ManageCity($this->bd); $gestor->deleteCity($parametros); $this->bd->delete("countryLanguage", $parametros); $parametros = array(); $parametros['Code'] = $Code; return $this->bd->delete($this->tabla, $parametros); }
<?php require '../clases/AutoCarga.php'; $bd = new BaseDatos(); $gestor = new ManageCity($bd); $id = Request::get("ID"); $r = $gestor->deleteCity($id); //var_dump($bd->getError()); $bd->close(); header("Location: index.php?op=delete&r={$r}");