"I've got an upset stomach" (polite)
"I've got a stomach bug" (polite and vague)
"I've got a dodgy belly" (informal, implies but does not state you have diarrhoea)
"I've got the runs" (slightly crude, inappropriate for some situations)
"I've got the shits" (very crude, inappropriate for most situations)