Re: [PHP-DB] category structure

2001-10-29 Thread DL Neil
i need is the ability to go thru all of > the menu array with index of $menu[0][*] one at a time > and then print out all $menu indicies where [*] > matches $menu[THIS][] > the unset removes a category once it's been printed > > Any ideas? > I don't want to recursiv

Re: [PHP-DB] category structure

2001-10-29 Thread olinux
S][] the unset removes a category once it's been printed Any ideas? I don't want to recursively hit the database a bunch of times. Thanks, olinux --- DL Neil <[EMAIL PROTECTED]> wrote: > > - Original Message - > From: "olinux" <[EMAIL PROTECTED]>

Re: [PHP-DB] category structure

2001-10-29 Thread DL Neil
- Original Message - From: "olinux" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 29 October 2001 08:16 Subject: [PHP-DB] category structure > anyone have any ideas on this > > I have a table of directory categories > id | parentid | category

[PHP-DB] category structure

2001-10-28 Thread olinux
anyone have any ideas on this I have a table of directory categories id | parentid | category so... 1 | 0 | blah1 top 2 | 1 | blah2 sub 3 | 1 | blah3 sub2 4 | 3 | blah4 sub2->sub I want to hit the DB only once so i select all and drop into array Now i've created array with these