You had constipation
and after medication by your doctor, your abdomen disturbed and uncomfortable and you had frequency of stool with the medication of constipation.
Here I advice you to take medication for amoebic colitis
for at least 5 days , means you can take ofloxacin+ornidazole
along with supplements such as sporolac and B complex twice a day, by this you will get relief in your abdominal disturbance and relevant symtoms.
Good luck and take care.