I have a bad cough from being sick im. Not sick now just a cough n now when I cough or not cough I have a pain in my right upper rib area:/?

Bronchitis. A cough that persists after a cold is often bronchitis or inflammation of the bronchioles/small tubes in the lungs. The soreness you feel with coughing can be caused by that inflammation or by a small pulled rib muscle. However, shortness of breath, fever, wheezing, or symptoms lasting more than a few days can require urgent medical attention.
Call your doctor. With symptoms this complex, you owe it to yourself to call your doctor to help you make sense out of them.