I have data about my family members in the database. I want to create a web page with a family tree dynamically generated by reading from a table.
My table schema looks like this:
id(int) name father(int) mother(int) spouse(int) dateOfBirth
where father, motherand spouserefer to a column of idthe same table. The root root will be null for father and mother.
Given this data, how can I dynamically generate a family tree. I am new to the development of tables, so if this project is optimal, propose another scheme from which this goal can be achieved.
Any pointers on how to start from the beginning will be greatly appreciated.
source
share