yeast infection? UTI ? or both ?

I've been using yeast infection medicine for 4 days now because I felt a yeast infection coming on but it hasn't worked. I have a burning sensation when I pee and itching from time to time can someone please tell me what this is ????