You just have bad gas. I wouldn't be too concerned about what you are going through. Just let it go through the motions.
actually I figured out a lot of my pain and problems was off a side effects of a antibiotic I was taking!!!!
I sit down a lot everyday so I sometimes feel unpleasant sensations in my legs, like slight knee pain or muscles pulling.
If I sit down in the bathroom for too long, my right light usually starts to get needles in them until I stand up. I've never felt anything like swollen legs..have you recently got a leg operation?
Try drinking more water, eat solid foods to make the stool more solid and less liquid.
Have you eaten any red meat recently? Was the food bad, Are you always hungry? I hope its not a worm.
Tell your doctor, stomach aches should never last that long.