Hello, smoking increases your chances of getting a lung infection n thus your phlegm. Try to gradually reduce it n then avoid it.
Next Steps
Even carbonated drinks are not preferable. Need to perform certain exercises on a daily basis. Hope u eat well n sleep well too.
Health Tips
Your yellow spit is the bile liquid mixed with gastric juices. Please do consult here for further assistance.