Terrible cough and sharp pain

Della
I've had a horrible cough for two days. I coughed so much last night that I woke up sitting up and I have a very sore spot in the muscles under the left side of my rib cage. I'm trying not to panick so if anyone else has this please speak up. Otherwise I'm heading to the doctor.