uti medicine & chlamydia medicine

is it safe to drink while on pills for both a uti and chlamydia? or will it effect the medicine?

also didn't know what category to put this in but figured i'd get the best answers on here.