I have an ear infection and I was given what I thought was ear drops but it's ofloxacin 0.3% eye drops. What should I do?

Try it. You can give it a shot, using the eye drops, as the active ingredient is appropriate for treating ear infections. If you receive no relief in a day or two, contact your physician for the ear drop equivalent.