From: "Jørg Vidar Bryne" <[EMAIL PROTECTED]>
Sent: Saturday, March 10, 2001 11:52 PM


> What do you mean by it fails? Any particular error, or does it just time
> out?
>
> I've made a different recursive function to print a tree-menu, you can
have
> a look at it if you want but it might not be what you're after. It prints
a
> tree-menu, and reqires the table to have at least a field named id and
> parent. parent telling which node an object is connected to.
> But I guess you know that already, I just got carried away! Maybe someone
> could use this.

<snip>

One of the rules I live by is never to assume you know all there is to know
about a subject.

You've just opened my eyes a little more with this script. All these years
I've been making recursive db-queries and it can all be done in just one...

Your script _must_ be faster, quite simply due to the fact that you only
make one query.

Thank you thank you thank you!

- Carsten



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to