You need proper evaluation and treatment for constipation and gastritis. Physical consultation would be advisable.
Next Steps
Till then,
1. plenty of fruits, salads and vegetables
2. plenty of oral fluids 3-4L/ day
3. Avoid: addictions/ oily - spicy food
4. Isabgol husk can be taken with Luke warm water at bed time.