www.webdeveloper.com
Results 1 to 3 of 3

Thread: Rss media problem

  1. #1
    Join Date
    Mar 2012
    Posts
    2

    Rss media problem

    Hi Guys,

    Im trying to put in an image into an rss feed.
    But I cant get it to show


    here is how I try to do it:

    echo "<item>
    <title>$title</title>
    <pubDate>$SOTD</pubDate> <link>$link</link>
    <description>$description</description>

    <media:content url='http://farm7.staticflickr.com/6236/6295693588_71489924aa_b.jpg' type='image/jpeg' height='480' width='640'/>

    </item>";


    Could any one tell me what I am doing wrong

    Thanx in advance

    /Henry

  2. #2
    Join Date
    May 2003
    Posts
    599
    Try using the code tags to to define the code blocks in your posts more people will look at them.

    Post the actual parsed souce code...RSS is XML, and without the XML and RSS definitions it makes it tough to see if you are actually rendering well-formatted XML.

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    thanx for the input. Here is a link to the rssfeed. The texts are working fine, its just not showing the images

    http://www.bestwebdesignaward.com/rssFeed.php

    And here is the php code i use:

    Code:
    echo "<item>
    <title>$title</title>
    <pubDate>$SOTD</pubDate> <link>$link</link>
    <description>$description</description>
    
    <media:content url='http://farm7.staticflickr.com/6236/6295693588_71489924aa_b.jpg' type='image/jpeg' height='480' width='640'/>
    
    </item>";

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles