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 8235795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:56:05+00:00 2026-06-07T18:56:05+00:00

I was using this to generate RSS to post to my facebook wall… but

  • 0

I was using this to generate RSS to post to my facebook wall… but in the last 24 hours it stopped working. I think that the feed pushing service i use became strict with the RSS validation. This doesnt validate… and i cant get it too. Can anyone suggest changes to make this work? I know this probably looks VERY messy! :os

Thanks in advance.

<?php do { ?>
<item>
<title><![CDATA[<?php echo htmlentities(strip_tags(addslashes($row_getDresses['listing_title']))); ?><?php if($_GET['type'] == "reduced-dresses"){?> (REDUCED BY <?php echo $row_getDresses['symbol'];?><?php echo $row_getDresses['reduced_price'];?> <?php echo $row_getDresses['dress_currency'];?>)<?php } else {?> (<?php echo $row_getDresses['symbol'];?><?php echo $row_getDresses['price'];?> <?php echo $row_getDresses['dress_currency'];?>)<?php }?>]]></title>
<link><![CDATA[http://www.asite.com/dress/<?php echo $row_getDresses['listing_tidy_url'];?>-<?php echo $row_getDresses['dress_id'];?>.html]]></link>
<description><![CDATA[<?php echo substr(strip_tags(addslashes(trim($row_getDresses['dress_desc'])),'ENT_QUOTES'),0,100);?>]]>...</description>
<?php if (isset($row_getDresses['main_image']) && file_exists("../listing-images/".$row_getDresses['main_image']."")) { ?>
<enclosure url="http://www.asite.com/listing-images/<?php echo $row_getDresses['main_image'];?>" length="<?php echo filesize("../listing-images/".$row_getDresses['main_image']."");?>" type="image/jpeg">
<?php }?>
<?php if ($_GET['type'] == "reduced-dresses"){?>
<pubDate><?php echo $row_getDresses['date_updated'];?> GMT</pubDate>
<?php } else { ?>
<pubDate><?php echo $row_getDresses['date_added'];?> GMT</pubDate>
<?php }?>
<category><?php echo htmlentities($pageTitle);?></category>
</item>
<?php } while ($row_getDresses = mysql_fetch_assoc($getDresses)); ?>
  • 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-06-07T18:56:08+00:00Added an answer on June 7, 2026 at 6:56 pm

    you dosn’t close the enclosure-tag, add a </enclosure> or just add a / at the end of the tag like <enclosure ... />

    Update
    and readability was horible, here is an exemple at your code in my coding-style:

    <?php
    
       do
       {
          /* preper data */
          $category = htmlentities($pageTitle);
          $link = "http://www.asite.com/dress/{$row_getDresses['listing_tidy_url']}-{$row_getDresses['dress_id']}.html";
          $description = substr(strip_tags(addslashes(trim($row_getDresses['dress_desc'])),'ENT_QUOTES'),0,100);
          $title = htmlentities(strip_tags(addslashes($row_getDresses['listing_title'])));
    
          /* Reduced price? */
          if($_GET['type'] == "reduced-dresses")
          {
             $title .= " (REDUCED BY {$row_getDresses['symbol']}{$row_getDresses['reduced_price']} {$row_getDresses['dress_currency']})";
             $date = $row_getDresses['date_updated'];
          }
          else
          {
             $titlt .= " ({$row_getDresses['symbol']}{$row_getDresses['price']} {$row_getDresses['dress_currency']})";
             $date = $row_getDresses['date_added'];
          }
    
          /* image exists? */
          if(isset($row_getDresses['main_image']) AND file_exists("../listing-images/".$row_getDresses['main_image'].""))
          {
             $image = "http://www.asite.com/listing-images/{$row_getDresses['main_image']}";
             $image_size = filesize("../listing-images/".$row_getDresses['main_image']."");
          }
          else
          {
             $image = FALSE;
          }
    
    
          /* write RSS */
          echo "<item>";
          echo "<title><![CDATA[{$title}]]></title>";
          echo "<link><![CDATA[{$link}]]></link>";
          echo "<description><![CDATA[{$description}]]>...</description>";
    
          if($image)
          {
             echo "<enclosure url='{$image}' length='{$image_size}' type='image/jpeg' />";
          }
    
          echo "<pubDate>{$date} GMT</pubDate>";
          echo "<category>{$category}</category>";
          echo "</item>";
    
       } while ($row_getDresses = mysql_fetch_assoc($getDresses));
    
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the code that I'm using to generate a DH keypair: KeyPairGenerator keyGen
I wanted to generate a list view using below code. But after running this
I am using this code to generate random colors (which is working fine): {
I'm using this code to generate JSON string, but a faced with one problem,
I am using this command to generate Localizable.strings file. I have to go through
For some reason when I generate this using jquery to fill in my table.
How can I generate this HTML using Jade <a class=btn btn-primary btn-large data-toggle=modal href=#websiteModal>
I have this Maven task to generate Java classes from an XSD file using
I am using the following code to generate excel from sql through php.this is
While it is possible to generate PowerPoint presentations automatically using Office Automation , this

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.