Hi,

I had followed the steps in the article http://www.sitepoint.com/article/hie...ata-database/1 and it works fine. but, i want to display the records in the below format...

Code:
      x
     /  \ 
   x     3
   /\
 1   2
Currently, the tree is looking like http://www.happywayfamily.com/Family...ppyUserId=1081

Can anyone help me to sort out this problem?

Thanks.