RE: [PHP-DB] List menus
| From: | Vincent DUPONT | Date: | Tue, 05 Dec 2006 15:04:47 +0000 |
| Subject: | RE: [PHP-DB] List menus | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42801@lists.php.net to get a copy of this message | ||
Hello,
there is a very good menu to do this : see PEAR html_menu
(see http://pear.php.net, search for package HTML_Menu)
this has various menu types. One is the 'tree' (vertical list), the other is the
'urhere', which will display the 'You are in:...' menu.
I guess this is mhat you need.
This works very well as long as you have a distinct URL for every menu item, which is usually the
case.
I guess there is a PEAR::DB wrapper that will let you connect and fetch the data from a database. I
did my own menu class to fetch my own menu data and display of using the HTML_Menu.
A good point is also the 'renderers' wich let you create new layouts for the very same
menu data. this will help you create special menus for your customers...
Vincent
-----Original Message-----
From: David Skyers [mailto:d.skyers@ucl.ac.uk]
Sent: Tue 5/12/2006 14:19
To: php-db@lists.php.net
Subject: [PHP-DB] List menus
Hello,
How do you create a database driven list menu, and record the options
that a user has chosen. And then display the list menu with those chosen
option selected.
Please select from list >PHP 3 ----------------------- >PHP 4 >PHP
5
Regards,
David