$_POST['idP'], ':fecha_inicio' => $_POST['fecha_inicial'], ':fecha_final' => $_POST['fecha_final'], ':estado' => $_POST['estadoP'], ':nombre' => mb_strtoupper($_POST['nombreP']), ':nivel' => $_POST['nivelP'] ]; echo json_encode(query($sql, $params, true)); header("Location: ../carreras.php?facultad=" . $_POST['facultadP']); exit();