At 03:06 PM 9/5/01, you wrote:
>I thought about that, but other than style, is there any advantage to one
>technique over the other? Database connections aren't free, but neither
>are lists and arrays...
I believe that's your measure of memory and cpu and slashdots.
You probably have a lot more available memory and cpu power than database
connections.
If so, than storing the data and not nesting the loops, will not use too
many resources and will not take too long, and it will keep your database
connections available to more people when you get slashdotted. It may be a
bit harder to develop your logic.
If you never need to worry about slashdotting, or database connections are
truly inexpensive and you have tons of them, then use all the database
connections you want, and your individual pages might be a bit easier to
develop and execute.
Jerry
========================================================
Jerry Asher [EMAIL PROTECTED]
1678 Shattuck Avenue Suite 161 Tel: (510) 549-2980
Berkeley, CA 94709 Fax: (877) 311-8688