I went to the doctor he told me I have a UTI but I can't stop throwing up what can I do to stop?

Professional help. is needed , call back your doctor or go to ER to correct dehydration , and prevent uro-sepsis , you may need IV fluid.