Thank you for your question.
I am Dr Saha, I shall try my best to help you.
Hemorrhoid can cause bleeding.
Bur as there is abdominal pain along with loose stool, there can be a gastrointestinal infection.
In most cases it is viral.
But passage of blood with pain is often seen with bacterial or parasitic infection.
I would suggest to take an examination by doctor without delay.
Repeated passage of blood can cause anemia, fall of blood pressure.
This can cause lightheadedness.
A stool test, blood work would help to plan treatment.
Meanwhile, please try to keep good hydration.
Take plenty of fluid, oral rehydration solution.
Bland soft diet, rice, banana, toast can be taken.
I hope this information helps.
If there’s anything else I can do, please let me know.
If you are satisfied, please rate my answer as good or excellent.