First of all, please do not take any medicine just by reading a book.
The dosage as well the duration of treatment is determined by a physician after a proper clinical examination.
The causes of constipation
1. Functional cause- due to decreased gastric motility
2. Irritable bowel syndrome- constipation predominant type.
3. Less consumption of fiber rich foods
4. Less fluid intake
5. Prolonged use of certain medications.
& Metabolic causes, etc.
So, kindly consult a Gastroenterologist
& get a proper physical examination done.
Investigations like Ultrasound
scan of abdomen, Colonoscopy
& contrast studies will be helpful to rule out any pathology in the Gastrointestinal tract.
Till then, symptomatic relief can be obtained by intake of Laxatives & stool softeners, but their regular use is not advised.
However, as long as the underlying cause is not treated, symptoms will keep recurring.
You can ask me any further query on this website using the below link: http://www.healthcaremagic.com/doctors/dr-polash-sannigrahi/64925
There is no need to worry, you will be fine.
Wishing a good health.