I think you are suffering from Gastroenteritis
,which is the infection of the stomach and the intestine.Electrolyte solution along with antibiotics if needed is the treatment of choice.
Just be careful, you may need i/v fluids if the dehydration
becomes a problem and you are not able to replenish enough amount by mouth.
Keep an eye, and consult a doctor if worse.