Hi welcome to Health care magic forum. From you description it appears that you have irritable bowel syndrome
, urine infection, or kidney
I advise you to consult a gastroenterologist
, for confermation of the diagnosis. You may need to have C.T.scan, besides other routine tests, for confermation.
Beside i advise you to follow some diet recommendations as avoid taking more of spices, chillies, junk foods, and oily foods as these foods cause gastric and intestinal irritation and cause the symptoms.
I wish you quick and complete recovery and thanks for calling.