Thanks for your query.Based on the facts that you have posted it appears that you have prostatitis
.However this can be confirmed only on clinical and digital rectal examination
by a qualified Urologist
and following basic tests like
1) Routine Urine test
2)Ultrasound scanning of the abdomen .
Please take broad spectrum antibiotics along with anti inflammatory medication like Diclofenac
twice daily .
Get the prescription of medicines from your family Physician.
Ensure to drink more water to keep your urine dilute .