Reply to Recursively cycling through an menu array

Your name:

Reply:


Posted by Arne-Kolja Bachstein on 12/07/07 01:09

Hi there,

I have a small problem now with the output of a menu structure.

I have:

An array out of a database with fields PageID and Title. The PageID
field is a string like "1.1.1", association a menu like

1.1.1 (Menu 1, Sub 1, Entry 1)
1.1.2 (Menu 1, Sub 1, Entry 2)
1.2.1 (...)
2.1.1
3.1.1
3.1.2

[and so on]

This is not limited to a specific nesting level nor exists a minimum
nesting level. Just "1" can happen as like as "15.3.2.3.4.5.3".

I need:

The menu output with an unordered list (ul).

I know the part of the markup coding is not the problem, but I got no
clue on how to cycle throught the array in a convenient and logical
way. Do you have any hints on how to play with the fields string to
make it possible to recursively work with it?

Thanks in advance

Arne

[Back to original 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

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