The two main forms of UTI's are Prostitis and Cystitis
Cystitis - Occurs in females - bacteria enters urethra and reaches the bladder - causing burning sensation
Prostitis - occurs in males - bacteria reaches the prostate gland causing swelling, infection may spread downwards towards the testes causing pain and swelling.
OR
An infection may occur in the kidney due to blocked urine flow