RE: [PHP-DB] Generate Menu based on database structure
| From: | Gavin Amm | Date: | Wed, 20 Oct 2004 05:08:18 +0000 |
| Subject: | RE: [PHP-DB] Generate Menu based on database structure | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-36925@lists.php.net to get a copy of this message | ||
Thanks for the link.
I've got a working JavaScript menu system; I wanted a PHP script that
runs once/day to generate the tree structure in the JavaScript config
file. That way each time I added a page to the database, it would be
automatically added to the menu system.
I'm still interested in the menu class to store each record as an object
of the class if anyone can point me to any sites or offer any hints.
Cheers,
Gav
-----Original Message-----
From: Leo G. Divinagracia III [mailto:ldivinag@csuhayward.edu]
Sent: Friday, 15 October 2004 11:29 AM
Cc: php-db@lists.php.net
Subject: Re: [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/tree/
--
Leo G. Divinagracia III
ldivinag@csuhayward.edu
zzzzz
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php