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

  • SEARCH
  • Home
  • 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 3803222
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:19:46+00:00 2026-05-19T14:19:46+00:00

I want to put RSS feeder in my web site. I have created rss-feed.xml

  • 0

I want to put RSS feeder in my web site. I have created rss-feed.xml file and uploaded it to the server. It’s working file. But I want to list all the products in this page. So I created a php page. Here I fetch all the data from product table and wrote in to the xml file. But it’s not working see the code below.

$sql_pdct="SELECT * FROM tbl_category where bit_active =1 and int_category_id IN ( SELECT int_category_id FROM tbl_product WHERE bit_active =1 )";

    $qry_pdct=mysql_query($sql_pdct);

    If (mysql_num_rows ($qry_pdct)>0){

            While ($row = mysql_fetch_array ($qry_pdct)){
                $con=$row['str_category']; 
                $xml_content .= "<item>\r\n";
                $xml_content .= "<title>".$con."</title>\r\n";
                $xml_content .= "<description><![CDATA[ All your fancy content goes here... ]]></description>\r\n";
                $xml_content .= "<link>http://www.your-domain-name.co.uk/folder/yourPage.html</link>\r\n";
                $xml_content .= "<guid isPermaLink=\"true\">http://www.your-domain-name.co.uk/folder/yourPage.html</guid>\r\n";
                $xml_content .= "</item>\r\n";
                }
    $xml_content .= "</channel>\r\n";

    $xml_content .= "</rss>\r\n";

    // open xml feed file and truncate to zero length
    $xml_file = fopen("rss-feed.xml", "w");

    // write xml content to xml file
    fwrite($xml_file, $xml_content);

    // close xml file
    fclose($xml_file);

    header("location:rss-feed.xml");

My table contain 12 items but the result showing only one item. How is it?

  • 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-19T14:19:47+00:00Added an answer on May 19, 2026 at 2:19 pm

    They all have the same GUID and are thus marked as being multiple versions of the same item.

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

Sidebar

Related Questions

I have a page layout for my MOSS '07 site that I want put
I want to put a copyright notice in the footer of a web site,
I want to grab the RSS feed content from a site and display it
I have an RSS feed which has an image and some text. I want
hey, hi i want put limit on object creation means a class can have
I want to put a sharpen filter on an image. I have found a
I want to put together simple TCP server using Python and Twisted. The server
i am developing an android app that fetches an RSS feed, now i want
I want put a server-side control in a Literal. Is it possible? If yes,
I want put this two value together (Side by side), as following image, but

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.