About blood in pee,faeces and stomachache at the same time.

Patient: I have seen blood in my pee and in when i had my faeces in recently.but the blood seems appear alternately.At the same time i had stomachache at the bottom.Do this could be dangerous?

Doctor: