By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

Recursive menu

P: n/a

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?
Dec 9 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.