Thanks for posting your query.
Painful bowel movements and blood in stool
suggest hemorrhoids. however there are many other cause that may present similarly like proctitis, Inflammatory bowel disease
and anal fissure
You are advised to visit your doctor for physical examination and get tests like stool analysis, proctoscopy, colonoscopy
You should avoid spicy and heavy food, take soft diet. Avoid straining during defecation.
Hope it helps.