Here's a picture. Which cable goes with the iPod and which one goes with the iPhone?
You can't see in the pic, but the one with the smaller dock end has the two things on the sides of it that can be pressed in to retract the little prongs on the side of the charging port.