Drink lots of fruit juice with table salt added. Have semisolid foods more,so that you get water from the food too. Continue this food habit till you feel normal. ...
Bactrim is a probiotic, will need couple of days to act.
Once you recover, please see your physician again if you continue same symptoms, and Ultrasonography of abdomen and colonoscopy might help ...