Tonsillitis happens when your tonsils swell. It is usually caused by a viral infection. It tends to affect children and it generally shows with symptoms such as difficulty swallowing, fever, ear pain, and headaches.Doctors diagnose tonsillitis by taking a look at the tonsils and through the use of a throat swab to detect the presence of bacteria. M