Thanks for your query. Based on the facts that you have posted it appears that you have UTI with Cystoprostatitis.Please get following investigations done to come to conclusion and confirm the diagnosis.
1) Routine Urine Test
scanning of the Bladder
The final diagnosis can be confirmed only on clinical examination and reports of these tests.So please consult some Urologist
for evaluation and treatment.Please take some antibiotics like Ciprofloxacin
and urinary anti spasmodic s like Flavoxate twice daily with some urine alkalis er for 10 days. . If problem persists you may have to undergo (Cystoscopy
) endoscopic examination of Bladder.
Please note that this may not be due to masturbation
and mere quitting masturbation will not solve your problem.