Constipation

Kathleen
Been having really bad constipation to the point where I've thrown up from not being able to go twice. Took magnesium citrate and went watery and haven't been able to go since. What can I do to help me go?