I have an ear infection, but my mom said I should still go to school. It's a distraction and I can't focus because it hurts so much. Help!

I have an ear infection, but my mom said I should still go to school. It's a distraction and I can't focus because it hurts so much. Help!