Since the cough is with expectoration (yellow mucus), a expectorant syrup shall solve the problem by loosening it up. In my opinion, Butadryl (butiramate) is a cough suppressant, which will suppress the cough and should not be used.
Next Steps
Kindly consult your doctor for the same.
Health Tips
Non-pharmacological intervention such as steam inhalation twice a day should help.