Thanks for query.
It seems that your daughter might have constipation
with chronic infection like amebiasis
as she passed motion with white mucous.
Go for anti amebic medicine with antibiotic combination like Oflox
TZ for 3 days.
With this course she will pass stool smoothly and constipation will be alright.
Give her bulk containing diet like more fiber,green veggies etc.
Give plenty of water.
Ok and bye.