simps0n 0 Newbie Poster

Hello, folks!

I'm trying to parse RSS feed and display it on my own page.
MagpieRSS looks good enough for me, but I have a little problem.

I want to display not only the title and description of each article, but the thumbnail as well.
For example, I tried to do that with this feed. Everything is alright with the title and the description, but I can't do the thumbnail thing. What I've tried is the following:

foreach ($rss->items as $item ) {
	$title = $item[title];
	$url   = $item[link];
	$description = $item[description];
	$thumbnail = $item['media:thumbnail'];
	echo "<a href=$url>$title</a></li><br>";
	echo $description;
	echo "<img src=$thumbnail>";
}

As I said before, the other things are fine, but it's not showing the thumbnail.

Thanks in advance for any help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.