My iPhone won't charge, this cable or accessory is not certified?

I have the iphone 5c and i used my friends charger today to charge my phone, everything seemed to work normally, but after about 2 hours or so (it was no longer plugged in) i got a message saying "this cable or accessory is not certified." I wasn't sure what it meant and just dismissed it. However, my battery started to drop significantly and became very glitchy, it would keep restarting on its own and the screen became glitchy. I got home and tried to charge it with my own normal charger. At this point it was completely dead. It charged up to 5 percent and turned back on, however, it stopped charging and the percent started to drop, even while it was plugged in. I tried restarting it, but it keeps repeating the same thing. It charges until 5 percent, stops, and then shuts down. I don't know what to do and i really hope this is fixable.

To check this cable.

*whispers* new chaaargee corrdd

  • This cable or accessory is not certified and may not work reliably with this iPhone? I have a life proof case and I took it under water. I noticed some water inside the case so I took it off and saw that there was water on the outside of the phone. Ever since then a note pops up every 15-30 seconds saying "This cable or accessory is not certified and may not work reliably with this phone". What should I do? Is there a way to fix it? My phone is virtually unusable since this annoying message keeps popping up. Any help would be appreciated.
  • This cable is not certified and may not work reliably with this iphone? I have had this message before, but my phone was plugged in. This time I was at a concert wearing a bag that was loose on my body and my phone was in it. It could be easily taken out without me noticing. I took it out and the message appeared. Is it possible that someone plugged something in to my phone and put a virus or something on it? Or am I just being paranoid?
  • My iphone won't charge with my usb cable? I have a usb cable which i always use to charge with my wall charger. Yesterday i wanted to charge my iphone 4s with it but suddenly it didn't work. No alert, no warning; nothing. Then i turned my phone off and i plug the usb cable in. And my phone turned on without i pressed the power button! I know the usb cable is working and maybe the problem is in my phone software. Anybody know how to fix this? What kind of software can fix my phone? Ps: it's jailbroken.
  • My iphone 5c won't charge with any other cable that it isn't original anyone? I have an iphone 5c and its original cable just stopped working so i bought a 5 dollar cable but it won't work it says can't charge use original. Anyone knows why or anything i can do?