It is looking like diarrhea
because of infections like amebiasis
as it is lasted for 2 weeks and it is very gassy and explosive and foul smelling. And child requires antiprotozoal agents to treat the infection. And you should give oral rehydrating solutions sips in equal amounts to the losses due to loose stools and vomitings and consult your Pediatrician
for the assessment and medication advise.