You are here: query db to return all related rows to a given row and all related to those and so on and so on.... « PHP Programming Language « IT news, forums, messages
query db to return all related rows to a given row and all related to those and so on and so on....

Posted by monomaniac21 on 12/17/27 11:55

hi all

On a networking site i am working on each user has their own id and the
id of another person who they are linked to. what i want to do is to be
able to pull up a list of everyone linked to one person and all the ppl
linked to them. So the query would work something like get id of linked
get linked row get id of linked to this person get of person get id of
linked to person.... this needs to go on until it reaches one person
who is not linked to anybody. can anyone tell me how to achieve that
with a control loop?

regards

marc

 

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

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