Thank you for your query on Healthcare Magic.
Your child seems to have a upper respiratory tract
infection could be due to a virus.
syrup in prescribed dosage for fever
The vomitings may be due to the swallowed mucus from the respiratory tract which usually causes gastric irritation and vomitings.
Some times child will have post tussive vomitings which occur after a bout of cough
due to pressure on vomitind centre which is closely located to the cough centre.
And consult the pediatrician
for the examination of the child, his throat, and lungs to look for any focus of infection and for antibiotic course if required.
Hope I have answered your query.