You bought a bad cable. (sorry, couldn't resist)
A USB extension cable should work fine; I use a 3ft extension every day to extend the charge/sync cable to the powerstrip behind my desk.
How long is the cable? If not some extreme length it should work just fine barring a problem with the cable.