A PHP/MySQL HierMenus Generation Interface - (1/4)
A PHP - MySQL Interface for HierMenus 4 By ( J. Chakrabarty )
HierMenus is a powerful and flexible hierarchical menu script written by Peter Belesis and available at WebReference.com. It is going through a constant process of evolution and now we have Version 4.1, which addresses many of the limitations of previous versions and is compatible with a wider variety of browsers.
Use of the database will make it possible to expand this interface for generating context sensitive hierarchical menus on the fly. Some potential applications are discussed at the end of the article.
The interface program is written in PHP and uses a MySQL database. Incidentally, both MySQL and PHP are open-source programs and a majority of the hosts now provide support for these due to the increasing popularity of the PHP / MySQL combination.
- Whatever HierMenus needs with a few changes that will be explained shortly. HierMenus is available at http://www.webreference.com/dhtml/hiermenus/.
- Server that runs PHP3 or PHP4.
- MySQL support on the server.
- The PHP interface, which can be downloaded from the author's site at http://www.creativephp.com/php/Downloads/php-Download.html.
This program can be easily adapted for use with other types of databases e.g. mSQL, Microsoft SQL, Oracle, Sybase, Access, PostgreSQL, InterBase etc. for which support is available in PHP.
Written by J. Chakrabarty and
Created: September 24, 2001
Revised: September 24, 2001