Oh, poor baby

Do you have any canned, plain pumpkin around? A smidge of that a day is supposed to help with both constipation and diahreah. Is his hair long on his hiney? It might be getting caught up on it.
I would think that if his poopie is really hard, it might make him bleed a little. If it gets to be more blood, then I'd get him to the vet tomorrow morning for sure.
I hope he feels better