See your doctor
Depending on your child's age, vomiting
can be due to many reasons.
However, if it has been going on for 2 days, the concern would be that they may become dehydrated. I would suggest that you take him to his doctor as soon as possible.