If it is on the right side, it could be gallstones. On either side it could be a kidney problem. These are just some possibilities, and you really need to see a doctor about it for a proper diagnosis.
This website is not for diagnosing of disease. Leave that to a qualified medical practitioner.