have you noticed any relief with different foods? if you do have a viral or bacterial infection in your stomach than softer foods will be easier to pass such as oatmeal and mashed potatoes. and for the stomach cramps id say it was painful gas maybe try gas-ex or something to that extent...you could also try a jug of clear lemon lime gatorade a day this will bring up your electralites and help harden stool naturally, i wouldnt recomend immodium or stool hardener,i am no doctor but its just common sense to know that yourbody like to do its own thing...if none of this works after 2-4 days or gets any worse go to the doc. or the ER sorry if i didnt help much
I read on the Internet a week, but I think you could go longer say, two weeks. Your body is obviously trying to get rid of something -- maybe food poisoning.
Stay hydrated!