Thank you for your query on Healthcare Magic.
Your child is passing frequent stools is due to acute gastroenteritis
mostly of a viral cause.
It is not due to constipation
Constipation is passing hard stools and passing of stools infrequently.
Stop giving the syrup given for constipation.
Maintain his hydration by giving sips of oral rehydrtion solutions like Pedialyte, coconut water to prevent dehydration.
Monitor his hydration by activity, urine output and the skin turgor.
Probiotic like lactobacillus
or saccharomyces can be added after the consultation with the Pediatrician
Consult the Pediatrician for the assessment and for the treatment.
Hope I have answered your query.