spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / programming / php / hierphp current pageTo page 2To page 3To page 4
[next]

A PHP - MySQL Interface for HierMenus 4

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source
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.

HierMenus requires hard coded external JavaScript arrays that contain details of the menu trees as well as menu parameters. This article presents an interface to HierMenus intended to combine the power and flexibility of HierMenus with that of a database driven by this interface. The database will store the menu trees and parameters and a small but powerful script will access the database and dynamically generate the arrays required by HierMenus.

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.

Requirements

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.

It is assumed that you are already initiated in the use of HierMenus. You don't need to understand exactly how the program works or need to be an expert in the JavaScript that HierMenus uses in order to make use of the PHP/MySQL interface described here. You do, however, have to know how to use the program and need to have a basic understanding of the various parameters in the menu arrays and for what each is required.


home / programming / php / hierphp current pageTo page 2To page 3To page 4
[next]

Written by J. Chakrabarty and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Working with the DOM Stylesheets Collection · Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Combine BottomCount() with Other MDX Functions to Add Sophistication · Creating a Daemon with Python · The Coming Voice-over-WiMAX Revolution


Created: September 24, 2001
Revised: September 24, 2001


URL: http://webreference.com/programming/php/hierphp/