Hi ! Probably you had a food poisoning
with your dinner. This gives rise to vomiting
and abdominal cramps associated with loose motions. The act of vomiting causes a valsalva
manoever which results in muffled or imparined hearing in your ear. Post vomiting when you got up suddenly, the blood circulation could not cope with the sudden change in posture and due to vaso-dilatation, blood supply to brain became less which resulted in a transient black out. You should start taking some appropriate antibiotic on consultation with your family physician and properly hydrate yourself in case you start getting loose stools. Take care.