You have a urinary tract infection, so you need to get antibiotics. If you can get them to give you cefuroxime (generic Ceftin), it would cure the constipation also. AFTER you are finished taking the antibiotic, you could start taking a probiotic and also Metamucil to help avoid constipation. Or if you prefer, you could use magnesium citrate tablets or glycerin suppositories. There are other things if those don't work, but the first three I suggested are very healthy habits.
If you think you are passing blood when you are urinating you need to be seen ASAP. You could have a UTI, that could turn into a serious kidney infection when its not treated..Being constipated, are you not drinking enough, eating enough or the right things, etc?? There are so many reason as to why someone could be constipated.