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

My charger doesn't work when I plug it into my laptop or my portable charger 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? My usb port does work because my friend charged her phone using my laptop but using her own cord. If I go into apple, will they exchange it for me or do I have to buy a new one?

Try and get another chord or just try to see if you could connect using another computer of someone eles's