Iphone charger not compatable?

I've only had my Iphone 5 for about 8 months, and a couple weeks ago, all of a sudden, my original apple charger it came with said that it wasn't compatable with this device when I plugged it in. It just stopped charging. So i went and bought a new charger, this is only about the 3rd week I've had it, and it just did the same thing when I plugged it in, and then it shut off and won't turn back on or charge. Anyone know what this could be and how I can fix this without having to buy a new charger every few weeks?

I don't think the charger is the issue. It's most likely your phone. I would recommend restoring it through iTunes and make sure to set it up as new. Before you do it, make sure you have everything backed up to iCloud though.