Diarrheal problems

How do I go about fixing having really really bad diarrhea only when I'm on longer than hour car rides? It's to the point where I've had 2 fecal insedents in the car. Super emberessing.