You may have gallbladder issues.
i have pains under my right rib cage to they aren't that bad but when I was lying in bed i turned over and it really hurt and I couldn't sit up for a while. It started on saturday stopped yesterday (tuesday) and then started again? what is it?