Hi, Welcome to HealthcareMagic Forum.
You have nothing but Mucus in stools which indicates Inflammation of Intestines and it could be associated with constipation
. It could be due to bacterial overgrowth (Infection) or food allergies
, Other cause could be Irritable Bowel Syndrome
Kindly get yourself examined by a Gastroenterologist so that he can examine you and Prescribe Medications. Experiment with Fiber foods, The best approach is to gradually increase the amount of fiber in your diet over a period of weeks. Avoid Problem foods which increase your Symptoms like alcohol, chocolate, caffeinated beverages and dairy products, Eat at regular times, kindly Do not skip meals and try to eat about the same time each day to help regulate bowel function. Drink plenty of water and do moderate exercise including Brisk walks for 30 to 40 Minutes daily.
Wish you Good Health, Take Care.