Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6674111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:42:27+00:00 2026-05-26T03:42:27+00:00

I am making rss feed using php and mysql . I pulled publications from

  • 0

I am making rss feed using php and mysql.
I pulled publications from database and formatted feed data as follows:

$output = "<?xml version='1.0' encoding='UTF-8'?>
            <rss version='2.0' encoding='UTF-8'>
                <channel>
                    <title>Our CareFusion Publications RSS "</title>
                    <link>http://www.dev.carefusion.co.uk/news/rss.php</link>
                    <description>This is the testing publication rss feeds</description>
                    <language>en-us</language>
                    <pubDate>{$now}</pubDate>
                    <webMaster>Ghazanfar Mir</webMaster>
            ";

Then looping through each publication:

foreach($getPublications as $publication)
{
    $output .= "<item><title>{$publication['Publication_title']}</title>
                    <link>http://www.dev.carefusion.co.uk/news/rss.php</link>
                    <description>" . strip_tags($publication['Publication_summary']) . "</description>
                    <pubDate>" . date( "D, d M Y H:i:s T", $publication['pubdate']) . "</pubDate>
                </item>";
}

$output .= "</channel></rss>";
header("Content-Type: application/rss+xml; charset=ISO-8859-1");
echo $output;

QUESTIONS:

  1. In actual, the query is returning 8 rows, however, rss is showing only 4, WHY?
    I checked source code of the page it shows all 8 items but displays only 4 on browser.
  2. These 4 items show on Firefox but not on IE/Chrome, Why?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:42:27+00:00Added an answer on May 26, 2026 at 3:42 am

    You’ve got the encoding declared on the <rss> tag, which is not a part of the specification. This is the only reason I can currently see as to why the feeds are not showing up on IE/Chrome.

    Can you provide the exact source of what’s rendered to the browser? The is something else that could possibly be stoping it from rendering on IE or Chrome and why no more than 4 entries appear in Firefox; if the XML has an illegal character (such as &, <, or >), that would cause the browser to stop rendering it completely.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating some RSS feeds using PHP (5.2) from a MySQL db specifically
Im making a group table that is populated from an XML/RSS feed, ive managed
I am using an RSS feed as a data source. I've adjusted how I
I'm making my own RSS feed in PHP for my website, which loads the
Im making an RSS feed from content that's been imported into my site. The
Consider the following function prototype for caching object from cached RSS(XML) feed: function cacheObject($xml,$name,$age
I am making an application (iPhone app) which gets information (jokes) from an RSS
Hello I'm making RSS reader and I'm using DOM. Now I stuck, trying to
I'm making a simple rss reader for the iPhone. The feed ( http://feeds.feedburner.com/foksuk/gLTI )
My iPad app features a UITableView populated from a feed. Like most RSS readers,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.