You are here: Recursive menu « PHP Programming Language « IT news, forums, messages
Recursive menu

Posted by Kim G on 12/09/07 02:50

Hi.

I am having some trouble with a recursive function that displays a
menu. In my database I have two fields that matters: page_id and
parent_id. Displaying the menu correctly is not a problem, but I need
it to expand the subpages of a parent page only when the user is
reading the parent page of a set of subpages, or one of the subpages,
or one of the subpages' subpage etc.. When the user is reading the
frontpage, only the pages with parent_id = 0 should be displayed.

Does anyone have a reasonable solution to this problem?

 

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

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