The following structure is kept in a single database table with the following fields:
The above table is called sample_structure in the sample code. Please note that if you're using a different format for storing the structure, all you need to do is change the SQL queries in the sample code.
field name field type description
id int unique item identifier (cannot be zero)
parent_id int parent item (or zero for top-level items)
node_name varchar text of menu item
node_url varchar target URL
Note that you will need to remove the sample lines generated by DHTML Menu Studio. This means a few calls to SSAdd... functions that come after the comment.