You are here: Re: recursive queries-tree view implementation « PHP « IT news, forums, messages
Re: recursive queries-tree view implementation

Posted by Roman Ivanov on 11/18/05 22:32

blackwater dev wrote:
> I am sure others have encountered this so I am just looking for ideas.
>
> Say I have an ancestry application where the users can enter parents,
> children, etc. The children have children, etc.
>
> table people
> id
> parent_id
>
> what is the best way to pull this from the db minimizing the number of
> queries to build a tree view of parents to children?

This is complicated. How many people are you planning to have total? How
frequently will this info be updated?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация