I agree with the others, and bad gastro can give you tummy cramps too.

But you should go back to your doc, because you shouldn't have gastro for so long