You are suffering from Gastritis and gastrointestinal infection. You need to take antacids to control gastritis.
Next Steps
Since you have blood in stools get a colonoscopy done to rule out piles or colitis
Health Tips
Take food at regular intervals. Avoid oily and spicy food