All ear infections are not the same. An ear infection may occur in the outer ear or the middle ear. Your doctor can diagnose the type of ear infection and suggest the right treatment, accordingly.