Forget about the floppy cable for the minute. You then have two other Flat cables in with three connectors on them. One connector of each cable is attached to the mother board.
Now, your hard drive is attached to one of these cables. Is your CD-ROM drive attach to that one, or is it attached to the end connector of the other flat cable?