Hi Chad,

you wrote:
Any ideas on how I would keep track of the level of recursion?
..........
My initial thoughts involve dynamically named variables, but I am also
considering being lazy and just keeping the level of the item in a
field in the DB.

A lot depends on what you want to keep track of levels for but as an overall rule of thumb we have found it easier to keep not only the level but also a breadcrumb trail and a parentID list in fields in the table. It takes a little more work by the server when you save a new item but saves heaps when you read stuff and do things with it, particularly things like menu structures in CMSs, etc.


HTH,

Kym K

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to