How to fix an iPhone charger?

I have the iPhone 5, and every time I try to charge it it just says "This accessory may not be supported" someone please help?! My phone is 13%

Check that there are no showing wires on the cord, and then make sure that there's no dust in either the iphone (where you plug the chargber in) and the charger itself. If that doesn't work id race over to crazy clarks or someplace like that and get a cheap new one! And see if that works… Just make sure all your apps are shut down fully so you can save that batery life for as long as you can!