function delFechasTarifas() { $eventos = new eventosModel(); $result = $eventos->delFechasTarifas($_POST['id_evento_tarifa']); if ($result) { $respuesta = array('estatus' => 200, 'msg' => "TARIFA ELIMINADA."); } else { $respuesta = array('estatus' => 500, 'msg' => 'ERROR AL ELIMINAR TARIFA.'); } echo json_encode($respuesta); }