RE: Generate Menu based on database structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx] 
Sent: Friday, 15 October 2004 11:29 AM
Cc: php-db@xxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxxxxxxxx

zzzzz

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux