Thanks for your query.Based on the facts that you have posted it appears that you have
Chronic UTI may be associated with Prostatitis
Please consult qualified Urologist
for clinical and digital rectal examination
to confirm the diagnosis and get following tests under his guidance.
1) Routine urine test and urine culture to find out organisms causing this infection.
2) Ultrasound scanning of the abdomen to rule out prostatitis.
Please take broad spectrum antibiotics like Cefotaxime
along with urinary antiseptic like Nitrofurantoin
twice daily and urine alkaliser thrice daily.and later on switch on to appropriate antibiotics as per culture report.
Ensure to drink more water.To keep your urine dilute This will help to control dysuria.
Further treatment will depend upon results of these tests and final diagnosis