Iphone 5 charger not charging in laptop but does with wall outlet?

My charger doesn't work when I plug it into my laptop but it charges when it is in the wall outlet. Nothing shows up on my phone when I charge it with my laptop. It stopped working yesterday, what is wrong with it?

Added (1). It charged my friend's phone with her charger so my usb port does work

If the cord still charges your phone from the wall, then more than likely it is a problem with the USB port on your computer. Does anything work when you plug it into that USB port?