Hi people,

I would like to ask a noob question how to model this situation?

I have table:
menu
(id pri_key int(5),
name varchar(200),
parent_id int(5))

Data looks like this:

1,Home,0
2,Pages,0
3,First Page,2
4,Second Page,2
5,Contacts,0


I would like to get recursion results, like this

Home
Pages
- First Page
- Second Page
Contacts

Any opinions? Thanks in advance :)


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to