your headache is mostly tension headache
as you are having loose stool
in past few days, abdominal discomfort, poor oral intake.
first use ORS (oral rehydration solution) to improve hydration and to prevent abdominal discomfort, can use antibiotics if diarrhea
not control by ORS. after improvement you can start semisolid diet.
for your headache.