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;").
In reply to Looping Database by andrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |