nandananushil1
asked on
load nested categories from database
i have a list of 495 categories which are nested up to 4 levels., example
main category
|_sub categoey 1.0
|_sub categoey 1.0.0
|_sub categoey 1.0.0.0
now if i am thinking of making a tree menu, so what do u guys suggest. shall i make a function which recursively makes list every time a new page is loaded or i just make a function in admin area so that when ever i wanna update category, i just click on button and it writes in file .. say menu.php and it gets stored in regular <ul><li> format so that continuous database read can be avoided.
if there is a better way to implement this, plz suggest so. also i would like ur suggestions about best recursive function to generate category list.
thanks a lot
main category
|_sub categoey 1.0
|_sub categoey 1.0.0
|_sub categoey 1.0.0.0
now if i am thinking of making a tree menu, so what do u guys suggest. shall i make a function which recursively makes list every time a new page is loaded or i just make a function in admin area so that when ever i wanna update category, i just click on button and it writes in file .. say menu.php and it gets stored in regular <ul><li> format so that continuous database read can be avoided.
if there is a better way to implement this, plz suggest so. also i would like ur suggestions about best recursive function to generate category list.
thanks a lot
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.