If you are experiencing continuous pain while urinating, a fever, or abdominal pain then visit your Dr right away. Cranberry juice has been shown to help with urinary tract infections. Avoid any food that appears to irritate your bladder. These may include caffeine, alcohol, carbonated drinks, tomato-based products, chocolate, artificial sweeteners, and spicy foods.
Here are two recipes using cranberries - feel free to use cranberry juice instead.
Here's some more info on bladder infections: http://www.drweil.com/drw/u/ART00317/Bladder-Infections.html