Why does my iPhone not charge?

I plug in my charger to my laptop and my phone goes "ON" "OFF" "ON" "OFF" really fast, so it isn't even charging. I'm an iPhone 5, latest iOS. I trust the computer as well but it keeps popping up with that.

Don't charge it with your laptop. Use the wall charger.