Thank you for the information,
There are some common causes of such pain below right rib cage.The common ones are hepatitis, gall bladder stones, cholecystitis, pleurisy, gastritis, ulcer, colitis , pneumonia , certain drugs etc.
As per the symptoms the chances of cholecystitis or gb stones may be there causing such symptoms in you.This may commonly cause such pain under right rib cage.
The other possibility could be the gastroenteritis which may also be associated with such abdomen pain associated with diarrhea.The pleurisy may also be associated with such symptoms.
Since you started this after taking cipro so the chances of it causing the side effect may also be there as it may cause gastritis, abdomen pain as the side effect.
The other causes should also be ruled out.You may take the pain killers like motrin, tylenol or advil to control the symptoms of pain.
Here is the link for more information
side effect of cipro
Let me know if you have any doubt.