user1348632
user1348632

Reputation: 21

PHP AJAX RSS reader

I've been using this PHP/AJAX rss reader http://www.w3schools.com/php/php_ajax_rss_reader.asp - it works well, but I have been trying to make more than three items come up in the resulting HTML. I've looked through all the PHP, but for the life of me I can't work out how to make the thing show more than three items.

Thanks in advance

Upvotes: 1

Views: 395

Answers (2)

Marco Johannesen
Marco Johannesen

Reputation: 13134

In the PHP loop it says

for ($i=0; $i<=2; $i++)

Which basicly means, i equals 0, and as long as i is less than 2 keep looping, and in each loop add one.

So it goes 0 -> 1 -> 2.... and stops

Just insert the number you want :)

Upvotes: 0

Hajo
Hajo

Reputation: 849

for ($i=0; $i<=2; $i++)

it should work by increasing the 2 at that line inside the php code

Upvotes: 1

Related Questions