andrew has asked for the wisdom of the Perl Monks concerning the following question:
I have a category from the shopping cart I'm making called "Chirstmas" it's I.D is 16, this chirstmas, has subcategories, that have items in it. I wanna pull the two newest items from Christmas.
Screen Shot of categorie:
http://www.merchandisemarket.net/a.gif
Screen Shot of items:
http://www.merchandisemarket.net/b.gif
This means I have to find Christmas Subcategories, loop through them, find the the two newest items (by latest I.D). Myabe you would get all the images in christmas in a list then find the two (but what if I wanted more than two like 6, "$lim = 6;").
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looping Database
by talexb (Chancellor) on Oct 16, 2002 at 18:49 UTC | |
|
Re: Looping Database
by dug (Chaplain) on Oct 16, 2002 at 18:55 UTC | |
|
Re: Looping Database
by rdfield (Priest) on Oct 17, 2002 at 08:08 UTC |