Sometimes when I go poop I try and my stomach really hurts should I go see a doctor hard to go stomach ache like feeling like going to throw up

Fiber. You probably need to see your doctor if this has been happening for a awhile (weeks to months). Your doctor will want to know how long this has been happening and what makes it better or worse. For many people just paying attention to what they eat will help. Avoid a lot of soda and stick to water. Try 8 glasses per day. Maintain a high fiber diet. Don't strain on the toilet.