Painful poops

What to do about painful stinging poops? My stomach gets so upset and it stings so bad when I go to the bathroom. And when I push like nothing comes out? But it feels like somethings there.