There are three main types of painkiller: non-steroidal anti-inflammatory drugs (NSAIDS), paracetamol and opioids. Each works in a different way. Most people only need to take painkillers for a few days or weeks at most, but some people need to take them for a long time. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.