How to fix my iphone charger? - 1

Recently when i have been plugging in my iphone to charge at the wall, it doesn't register the plug and takes a bit of wiggling around to get it to work. Now, my laptop isn't recognizing the USB so i can't sync new songs!

What happened is after a long time of use the cord got loose and now it is disconnected on at one point along the cord in order to fix it you would need to open the cord and pit the wires back together but it is much easier if you just buy a new cord. Plus it's hard to do and if you mess up it will be completely useless.