You must have undergone myringotomy
with grommet insertion for collection of fluid in the middle ear. Now you are having ear discharge
through that tube or it that tube has dislodged through the opening made for that tube. Please go to an ENT surgeon for proper cleaning of the ear and take ear swab for culture and sensitivity, use specific antibiotic according to that culture report, do not let water enter in to the ear. You should be fine in few days. Regards.