[PHP] Creaing a foldout menu from an array.
Hi Please advise. I need to create menu that has the following html body ul id=nav lia href=#Home/a/li lia href=#About/a ul lia href=#History/a/li lia href=#Team/a/li lia href=#Offices/a/li /ul /li lia href=#Services/a ul lia href=#Web Design/a/li lia href=#Internet Marketing/a/li lia href=#Hosting/a/li lia href=#Domain Names/a/li lia href=#Broadband/a/li /ul /li lia href=#Contact Us/a ul lia href=#United Kingdom/a/li lia href=#France/a/li lia href=#USA/a/li lia href=#Australia/a/li /ul /li /ul /body The menu is structured with an array where each field holds an ID a PerantID the name and the link . the PeratID refers to the ID of the item in the array wich it is attached to.. My problem is I cant figure out the correct loop / logic to put the ul tags in the rite places etc.. Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creaing a foldout menu from an array.
Hey Gregory-- On 8/7/05 12:05 PM, Gregory Machin [EMAIL PROTECTED] wrote: Hi Please advise. There was a thread on our forums a while back and one of my colleagues posted a variant of the code we use for our menus, so maybe this will help you: http://www.phparch.com/discuss/index.php/m/3901/2 Cheers! Marco -- BeebleX - The PHP Search Engine http://beeblex.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php