Hi
Welcome to the MedHelp forum!
In all probability this was a vasovagal attack. Excess gas, toxins from food you took, infection etc can trigger it. Take some probiotics. Keep yourself hydrated. Consult a doctor. Take care!
The human body has a nerve, called the vagus nerve. This wanders about the body from the carotids to the anus. It runs right near the anal sphincter.
When the vagus nerve is stimulated the heart rate drops by from twenty to forty beats per minute.
In hospitals in years gone by, cocaine overdoses, which cause very high heart rates, were sometimes treated by means of a gloved, lubricated finger inserted and withdrawn several times in the anal sphincter.
The nerve can also be stimulated by rubbing the carotids, which is dangerous because plaque may be broken off (causing a stroke), but was a way stage hypnotists used to cause unconsciousness (and tachycardia was once treated in ER's that way)
There is a genetic sensitivity involves. Some people have a vagus nerve that is more sensitive than others. The late Jackie Kennedy had an extremely sensitive vagyus nerve, which was the cause of her fainting.
The majority of heart attack deaths occur when the patient goes to the toilet and strains.
Usually there is a cofactor - in females mild anemia and dehydration.
There is nothing to be especially worried about the single incident, however such an episode often goes hand-in-hand with anemia, so it would pay to get blood work and a hematocrit.
If it happens again, immediately lie down and elevate your legs.
In the meantime use a stool softener such as metamucil and drink plenty of fluids.
Sometimes people pass out when they strain a lot. This happens on the toilet in a condition called defecation syncope. Basically, the strain you put on yourself to poo slows your heart down so much you pass out. Aside from hitting your head, it's generally pretty benign. Might be a good idea to see a doctor in case it's something more esoteric.
There is a vasovagal response that happens for many reasons but one of them can be bearing down to have a BM. It can cause fainting. Wikipedia the online encyclopedia has a good article on it under "vasovagal response" at wikipedia.org