<?php require '../clases/AutoCarga.php'; $bd = new BaseDatos(); $gestor = new ManejoUsuario($bd); $email = Request::get("email"); $usuario = $gestor->get($email); if ($email == $usuario->getEmail()) { $usuario->setActivo(0); $gestor->set($usuario); } $bd->close(); $mensaje = $bd->getError(); if ($mensaje == "") { header("Location:admin.php?op=Desactivado correctamente&r={$mensaje['2']}"); } else { header("Location:admin.php?op=No desactivado&r={$mensaje['2']}"); }
<?php require '../clases/AutoCarga.php'; $bd = new BaseDatos(); $gestor = new ManageCity($bd); $Name = Request::post("Name"); $CountryCode = Request::post("CountryCode"); $District = Request::post("District"); $Population = Request::post("Population"); $city = new City(0, $Name, $CountryCode, $District, $Population); //var_dump($city); $r = $gestor->insertCity($city); $bd->close(); echo '<br>'; echo $r; echo '<br>'; var_dump($bd->getError()); //header ("Location:index.php?op=Insertado ");