How to create a dynamic tree like structure
<p>I have the details of the members of my family in a database. I want to generate a web page with a family tree generated dynamically by reading from the table.</p>

<p>My table schema looks like this</p>

<pre><code>id(int)  name  father(int)  mother(int)  spouse(int)  dateOfBirth
</code></pre>

<p>where <code>father</code>, <code>mother</code>, and <code>spouse</code> are referencing the <code>id</code> column of the same table. The root node will have null for father and mother.</p>

<p>Given this data how can I go about dynamically generating the family tree. I am new at designing tables, so if this design is sub optimal kindly suggest another schema from which this objective can be achieved.</p>

<p>Any pointers on how to atleast get started would be highly appreciated.</p>
