Painkillers like ibuprofen, acetaminophen, and prescription opioids work in different ways and can have side effects. Here's ...