Your best bet is always to have the urine
tested to see what kind of bug is causing the infection and find out the antibiotic
that the bug is most sensitive to.
Of cause care must be taken to make sure you are not allergic to that particular antibiotic. Thankfully though most time you will have 2 or more antibiotics that have good activity against the culprit.