BRAT is a short-term approach to improve diarrhea symptoms - bananas, rice, applesauce, and toast help bind stool and give it more form.
Consider supplements like Saccharomyces boulardii and prebiotic fiber supplements like partially hydrolyzed guar gum to help with chronic diarrhea.