RE: [PHP] array recursion from database rows

2008-05-25 Thread Wolf
AIL PROTECTED]> Sent: Saturday, May 24, 2008 2:25 PM To: php-general@lists.php.net Subject: [PHP] array recursion from database rows Hi. I have a database table I have created for navigation. The table fields are uid, parent_id, menu_name. Each entry is either a top level element with a par

Re: [PHP] array recursion from database rows

2008-05-24 Thread Bastien Koert
On 5/24/08, Bob <[EMAIL PROTECTED]> wrote: > > Hi. > > I have a database table I have created for navigation. > > The table fields are uid, parent_id, menu_name. > > Each entry is either a top level element with a parent_id of 0 or a child > which has a parent_id that relates to the parent uid. > >

[PHP] array recursion from database rows

2008-05-24 Thread Bob
Hi. I have a database table I have created for navigation. The table fields are uid, parent_id, menu_name. Each entry is either a top level element with a parent_id of 0 or a child which has a parent_id that relates to the parent uid. What I am trying to do is recurse through a set of rows addi