Tips on giving liquid medicine

My 12w has an ear infection 🙁 the doctor gave us some medicine for it. My ds spits it back up no matter what we try. We've tried 3 different syringes, and both laying and sitting when giving it. Any ideas? I do have the pacifier that u can put medicine in not sure if he's old enough for that or how well it works. Any suggestions would be appreciated