RE: [PHP-DB] Generate Menu based on database structure

2004-10-19 Thread Gavin Amm
e: [PHP-DB] Generate Menu based on database structure graeme wrote: > Hi, > > Rather than writing a recursive function I'd suggest that you create a > menu class and store each record as an object of the class. why reinvent the wheel: http://www.destroydrop.com/javascripts/tre

Re: [PHP-DB] Generate Menu based on database structure

2004-10-14 Thread Leo G. Divinagracia III
graeme wrote: Hi, Rather than writing a recursive function I'd suggest that you create a menu class and store each record as an object of the class. why reinvent the wheel: http://www.destroydrop.com/javascripts/tree/ -- Leo G. Divinagracia III [EMAIL PROTECTED] z -- PHP Database Mailing Lis

RE: [PHP-DB] Generate Menu based on database structure

2004-10-11 Thread Gavin Amm
Gavin Amm Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Generate Menu based on database structure Hi, Rather than writing a recursive function I'd suggest that you create a menu class and store each record as an object of the class. The menu class will have variables of id, parent, title, chi

Re: [PHP-DB] Generate Menu based on database structure

2004-10-06 Thread graeme
Hi, Rather than writing a recursive function I'd suggest that you create a menu class and store each record as an object of the class. The menu class will have variables of id, parent, title, children, and tree. The children will be initialised to 0 and tree will be initialised to 1. You will n