Thank you for your query on Healthcare Magic.
This child looks like having gastroenteritis
which may be caused by a stomach bug.
It is not related to his teething
The stomach bud may be contagious to the others by contact, oral route if proper and hygeinic precautions are not taken.
Proper handwash will prevent this type of infections from spreading from one to another.
Hope I have answered your query.