Welcome to the MedHelp forum!
If you have swollen <span style = 'background-color: #dae8f4'>glands</span> in
the neck region only and ear ache then it could be due to tonsillitis, pharyngitis (infection of upper throat), infection in mouth, caries in tooth, internal ear infection, outer ear infection, eczema, dermatitis, dandruff, breast
cancer, fungal infection, other cancers like lymphoma etc. If you had flu like symptoms initially then it could be due to infectious mononucleosis too.