This is a tricky question! It's unlikely that any president died solely from diarrhea. Diarrhea is a symptom, not a disease itself. It can be caused by many different things, including infections, food poisoning, and even stress.
While diarrhea can be serious, especially in the case of dehydration, it's usually not fatal on its own. It's more likely that a president might have died from complications related to the underlying cause of their diarrhea, such as a severe infection or organ failure.
For example, President Zachary Taylor's death has been attributed to a variety of causes, including cholera, typhoid fever, and acute gastroenteritis. While diarrhea was likely a symptom, the underlying cause was more complex.
To answer your question more directly, we don't know of any president who died specifically from diarrhea.
However, it's important to remember that historical records aren't always complete, and there may be cases where the specific cause of death isn't fully documented.