First take something for the upset stomach. Like Pepto or Maalox. This should take care of both. Drink plenty of fluids, because long periods of diarrhea can cause dehydration. Also eat foods, like rice, toast, cream of rice, mashed potatoes. Do not eat spicy foods or hard to digest foods.