drink lots of water and eat things high in fiber, and go to the doctor.
The blood means there is something wrong near the end of the intestines, and the green means your body isn't digesting food properly. If the brown has been very dark and nearly black, it means there is bleeding in the earlier parts of the intestines.
in other words go to the hospital