uti or dehydration??

does anyone else feel like they have a uti when they pee or burning during / after peeing only why you don't drink a lot of water? But when I do drink more water it doesn't hurt?