What’s wrong with my stomach when it hurts and I want to poop?

The urge to poop when the stomach hurts is mostly a symptom due to diarrhea. The causes of diarrhea are twofold. On the one hand, it may be functional diarrhea caused by improper diet, or by a cold in the abdomen. It can be relieved by taking digestive drugs and probiotics, such as stomachic tablets and lactobacillus tablets under the guidance of a doctor, and paying attention to regular eating, eating less and more meals, eating more light and easily digestible food, avoiding cold, greasy, spicy and stimulating food, and paying attention to keeping the abdomen warm to avoid getting cold. On the other hand, infectious diarrhea may also be caused by bacterial or viral infections. Anti-infective or anti-viral treatment should be given, along with dietary regimen.