You could be having an infection of intestine or can happen with stress as well.
If any blood or mucus in stool get a stool test done for Ova/cyst .
Next Steps
Stool for routine test.
To see a Family physician/ Family Doctor
Health Tips
Avoid very fibrous diet or fast food till you see a doctor.
Drink plenty of water and fresh juices.
Maintain Hygiene. Wash your hands with soap and water before eating, after using the washroom.
Avoid eating out.