I get this feeling like my stomach is being squeezed and then i have to go toilet

i think its something im eating b/c this thing as been going on for about 2 years

Its very random b/c some times it wont happen at all that month and then it will happen alot the next


can some1 plz tell me wats wrong