View Single Post
  #4 (permalink)  
Old Apr 15th, 2008, 21:13
CloudedVision's Avatar
CloudedVision CloudedVision is offline
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: split xml search into multiple pages?

first, you get the entire array. Then let's say each page has 10 pages. So $i (the current item) is 10*(page_num-1). So on page 1 it starts at 0, page 2 it starts at 10, etc. Then we loop it until we A) run out of items, or B) Have displayed 10 products. That explain it any better?
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Reply With Quote