Loans - Home Insurance - Final Fantasy - Credit Cards - eHarmony Coupon

PDA

View Full Version : Multiple pages with ebay rss feed


kx2
Oct 3rd 2007, 4:00 pm
Can somebody tell me how to have ebay rss feed span on multiple pages on my website?

Say I want 10 items per page. This would be really helpful to know.

Thanks in advance.

hanji
Oct 4th 2007, 7:54 am
Can somebody tell me how to have ebay rss feed span on multiple pages on my website?

Say I want 10 items per page. This would be really helpful to know.

Thanks in advance.

If you have some PHP skillz, the way to to do is to suck the RSS feed into a array. Then loop the array with a start and end index point (for loop). Take the total records (100) divided by the number of auctions per page that will give you the number of pages available, then make some 'page' links (ie: 1, 2, 3, etc). Based off of the page value passed, you set up your start and end point for the loop (0 - 9 or 10 - 19, etc).

When I get some time today, I'll write a little article about this with PHP examples.

hanji

hanji
Oct 4th 2007, 4:15 pm
Hopefully, I understood your initial problem. I wrote a small blog post about paging eBay RSS feeds using PHP4 and arrays (http://www.money-code.com/node/27).

Let me know if you have any problems.
Thanks!
hanji

jonixkonios
Oct 4th 2007, 5:10 pm
great piece of code hanji, excellent work!

hanji
Oct 4th 2007, 7:08 pm
great piece of code hanji, excellent work!

Thanks jonixkonios

I hope to have a lot more code snippets in the near future.

hanji

kx2
Oct 5th 2007, 3:55 am
Thanks a lot hanji, I will try it out.

hanji
Oct 5th 2007, 7:17 am
Thanks a lot hanji, I will try it out.

No prob! Hope it gives you something to work with.

hanji

bujuk
Oct 7th 2007, 10:40 pm
Nice work. Really appreciate for the detail explanation. will include them in my next project.

Hopefully, I understood your initial problem. I wrote a small blog post about paging eBay RSS feeds using PHP4 and arrays (http://www.money-code.com/node/27).

Let me know if you have any problems.
Thanks!
hanji

geomark
Oct 8th 2007, 4:08 am
Hopefully, I understood your initial problem. I wrote a small blog post about paging eBay RSS feeds using PHP4 and arrays (http://www.money-code.com/node/27).

Let me know if you have any problems.
Thanks!
hanji

I love your domain name!

hanji
Oct 8th 2007, 8:04 am
I love your domain name!

Thanks geomark!