There are many causes of diarroea.
If you are having once or twice a day, i would not recommend to take immodium.
You can take a Proton pump
inhibitor like pantoprazole
for the mild stomach aches as they may be cause of acidity.
Take light , soft, bland diet.
Still your problem persists, meet a physician