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
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
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
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