I want to cry..

Wa

I'm 17 weeks pregnant. I have been constipated for 2 days now. I have been on the toilet on and off the past 2 days trying. My lower stomach hurts and my butt hurts. The poop seems to be really hard. My doctor only works certain days of the week so I could not get in contact with her over the weekend or today. When I went to the store the pharmacist told me not to take the laxative because it will harm my baby. I'm sure other pregnant women have been constipated and in the pain I'm in. How did you make this better? Is there something I can take that safe for the baby??? Of course I'm not looking for a doctor on here but I'm looking for people that had a similar situation.