Thank you for your question.
I am Dr Saha, I shall try my best to help you.
There can be a gastrointestinal infection.
Though in most cases it is viral, passage of blood is often seen with bacterial or parasitic infection.
I would suggest to take an examination by doctor without delay.
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.
These are usually better tolerated.
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.