uti wont go away

I had a uti & tried treating it myself for a week & a half i think eventually i just went to planned parenthood & they gave me sulfamethox to take (2 times a day for 3 days) i finished them & it has helped but i still feel like it's lingering & i really don't want it to get bad again. What do i do?