Because of constipated there was small ulcer or fissure formed in anal canal which cause blood in stool
If ur not taking proper diet or water it may cause large ulcer and cause bleeding more.
Next Steps
Avoid constipation
Drink plenty of water and take leafy vegetables
If still symptoms not reduced we need sigmoidoscopy’s
Health Tips
Take lactifibre syrup at night