i can eat solid food but throw up liquids can you help me

I eat an egg sandwich and drank orange juice and thew up on only. I am. Coughing a lot and in between meals I gag up thick saliva.