eliminar(); if($resultado){ header("Location: gestion_candidato.php?oid=".$idCandidato."#capacidades"); } else { header("Location: gestion_candidato.php?oid=".$idCandidato)."#capacidades"; } } catch (Exception $e) { $msg=$e->getMessage(); include_once("showError.php"); } ?>