Posted by Angelos on 07/12/05 12:49
Hello there,
I am trying to write a script that will create dynamically a menu from MySQL
database.
The database table is a product categories table and it has the folowing
filed:
category_id, parent_category_id, category_name (some other fileds are there
as well but these are enough to figure out the logic)
I know that I have to store all the product_categories records in a temp
array and then some how go through them and store the level of each record
in the menu....
If you have done something like that I suppose you know what I mean and I
would much appreciate to give me a hint here ...
I had a look in the phpLayersMenu from sourceforge but it is really advanced
OO code and I cannot understand the logic....
My target is to create a Tree menu with no pre - defined number of
records...
Thanks in advance.
Navigation:
[Reply to this message]
|