How do i know its a UTI?

I had sex with condom & it wasn't broken & in less than a week afterwards i started feeling like a dull kind of pain here & there on my left side around my ovaries or lower intestine im not sure but around there. Also I've been getting like sharp pain under my left cage rib everything is going on on my left side. I haven't really payed attention to my urine but today i noticed it looked cloudy and im not sure if the toilet water was dirty before i peed or something?