Sounds like a very strange problem if it is happening to two DIFFERENT kinds of laptop power cords...IE: HP/Compaq verses Mac Powerbook.
You might check to see if the JAck (dc jack) where you plug in the power cord to is not lose or broken. that is one of the most common problems with laptops is the dc jack gets lose or broken.
What usually causes this is if the laptop cord is pushed into the jack and the cord gets tweaked or the laptop gets dropped or pushed up against a wall and the cord pushes on the jack. Sometimes the solder joints get broken easily with heat and the torque to the cord. I suggest taking a small fine tipped pen or screwdriver and see if you can wiggle the DC Jack in the back of the laptop.
See if the jack is lose? etc? If you have to move the cord a certain direction to get the laptop to power up or charge, then that is most likely the problem. Let us know what you find out.
IF you still can't figure it out, sometimes you can take the laptop to your local repair shop or sometimes even batteries plus and they can test the battery. Which could also be that the battery is shot and wont hold a charge...
Another test is to see if the laptop will power up with out the battery installed, and running off the power cord by itself...