what could be the problem?

What could be the problem for your teeth to hurt when you eat anything? My teeth been hurting when I eat anything. It doesn't happen all the time but when it does it hurts. It's the teeth on the side of my mouth.