HELP ME

What can I do for gas and constipation pains ?! I’ve 22 weeks 5 days. They’ve lasted HOURS. Since before I went to sleep. Some farts make it feel better then it just hurts again (sorry)

Felt like I had to poop at one point and nothing came out / and need to poop hasn’t happened again