9 month baby, had chesty phlegm cough now for bout twelve weeks which makes him bring back up his food what should I do?

See pediatrician. A 9 month old infant can become very ill within and hour or two. He could also regurgitate his food that might chock him or get into his lungs. Get him seen by his pediatrician asap.