Hi, Welcome to HealthcareMagic Forum.
What is your age? You may be having Pneumonia
which is the Inflammation of Lungs secondary to Bacterial or viral Infection. Kindly get yourself examined by a Chest Physician. If Pneumonia is confirmed you may want to take Steroid
Preparations along with a High dose of antibiotics for more than two weeks or so.
Get plenty of rest, Stay away from school or work until your temperature returns to normal and you stop coughing. Drink plenty of fluids, especially water. You may want to take your Medications regularly and go for regular follow up.
Wish you Good Health, Take Care.