We all know that rice helps to stop the diarrhea but, as amazing as it may sound, rice is also good against constipation.
The explanation is very simple:
Constipation is due to the lack of liquids inside your body and rice has the property to help your body to retain liquids. Though rice helps your body to fight against constipation.
Actually this is the same effect that helps against the diarrhea. By retaining the liquids inside your body, it stops the diarrhea.
This is why rice is recommended for elderly persons as most of the time they do not drink enough water and are subject to dryness.