Re: objects in functions?

From: Date: Sun, 11 Mar 2001 15:35:45 +0000
Subject: Re: objects in functions?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-43392@lists.php.net to get a copy of this message
From: "Jørg Vidar Bryne" <jorg@enitel.no> 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

« previous php.general (#43392) next »