The stool in blood is most likely to be caused by hemorrhoids or anal fissure
although there can be other causes for blood in stool
You should consult a surgeon and get a proper physical examination as well as proctoscopy done to get the diagnosis.
Some times colonoscopy
may be required for the diagnosis of blood in stool.
Take plenty of water and avoid constipation
in mean time,pending your visit to the surgeon.