Apple Lightning to USB cable only works intermittently
I am currently on my second cable, after the first one stopped allowing me to sync to my laptop. The second is worst than the first in that it began having problems only hours after I removed it from the packaging. I thought I may be at fault for the first one, since I do recall pinching the cable in a drawer, possiby breaking a wire; however, the one I bought recently, only taking it out of the package and connecting it to my iPhone and laptop, began dropping the connection just sitting there for a few hours. It will connect and sync just fine for a minute, but shortly after it begins dropping the connection then appearing again ad nauseum. Both cables continue to charge, but the data connection isn't reliable at all. How can I go about receiving a replacement without buying a new one until I find one that works?
Since I'm sure someone will ask, I have iTunes 11.0.1.12 and iOS 6.0.2.
iPhone 5, iOS 6.0.2