Tree array
- From: "Leonardo Calado" <leonardo.calado@xxxxxxxxx>
- Date: 30 May 2006 04:12:40 -0700
Hi,
I have a simple problem, but I don't found a solution for my problem.
I'm try, try and not found. If anybody help me, I very, very thankful
for this help.
Here is my problem:
I have a table with following data I have access:
page_id
page_path
page_depth
page_order
page_has_childs
page_title
I make chages add this fields to make a breadcrumbs functionality from
this system in the following fields I have stored this data:
page_id page_path page_depth page_order page_has_childs page_title
1 x 1 0 1 Home
2 x.1 2 0 1 Products
3 x.1 2 2 0 3D Cad
9 x.1.2 3 2 0 Contact
10 x.1.2 3 0 0 Knowledge
In page path I store the location from that row data, for example in
page_id 10, I have the following path x(Home), 1(Products) and
2(Knowledge). In breadcrumbs I'm show like this Home > Products >
Knowledge.
My problem is, I need make a array tree with all data from database to
make a website map. anybody help me with this?
Thanks so much.
Leonardo da Silva Calado
.
- Follow-Ups:
- Re: Tree array
- From: DonO
- Re: Tree array
- Prev by Date: start windows cmd from php
- Next by Date: Re: Tree array
- Previous by thread: start windows cmd from php
- Next by thread: Re: Tree array
- Index(es):
Relevant Pages
|