i had installed the hard drive into my pcemphasized text
when i put the hard drive back in his pc
It will have installed drivers for your machine and not his, this is why the boot is failing.
Try booting to safemode and uninstalling all drivers.
Reboot and windows may find new hardware and install the correct drivers if not then you will have to reinstall XP while the drive is in the correct PC.