It's a little difficult to be precise as you missed out the most important information - the motherboard make and model.
However, some motherboards need the SATA controller to be set to IDE mode, some need to be told that the attached device is a DVD drive, and some need a DVD drive to be attached to a specific port (or ports). Rather than going by what a friend tells you, you should carefully read the manual for the motherboard to determine what restrictions there are and how to configure the device.
The very first thing you need to do is to check that the BIOS is actually recognizing the device at all (though there's not a lot to go wrong there, apart from a dead drive). If it sees it, but just isn't booting from it, then one of the above restrictions is probably the cause. (I assume that you are not getting the "press any key to boot from DVD" message, or that if you are you are pressing a key!)