Sometimes people suffer from long bouts of diarrhea after stomach flu or because of conditions that are ongoing, like irritable bowel syndrome. When frequent bowel movements continue for more than a couple of days, and there is no indication of parasitic or bacterial infection, certain foods can help firm bowel movements and put an end to the condition. Commonly doctors advocate the BRAT or BRATTY diet to help relieve diarrhea.
BRATTY is an acronym for bananas, rice, applesauce, toast, tea and yogurt. These foods, especially when eaten together, can help to firm bowel movements. In the past physicians recommended the BRAT diet only, which did not include tea and yogurt, but the BRATTY diet is now preferred given the beneficial qualities in yogurt.
THIS pertains to people, but I would think it can also apply to dogs. I do feed mine some people food, as it is in the dog food anyways.