is something wrong?

For the past month, i've been having some issues, sometimes it burns after i pee, and then i feel uncomfortable down there for an hour, and i've also been really close to peeing my pants a few times, i've had to run to the bathroom really fast. I thought i might have a ureinary tract infection but it doesnt burn most of the time and it doesnt feel like i always have to pee, but when i do feel like i have to pee i almost pee my pants. I dont understand what it could be..