Jump to content

Recommended Posts

Posted

You forgot to put a closing quote before the parentheses.

 

$ndata = dbquery('SELECT `blog_id`, `blog_subject`, `blog_text`, `blog_date`, `blog_writer` FROM `'.$db_prefix.'ti_blog_system` WHERE `blog_writer`=1 ORDER BY `blog_date` DESC LIMIT 5');

Posted

Thank you, the RSS feed works (unbelievable that it's often so simple). But now I have another problem. My description looks like this:

 

This is an integrated blog system I'm trying to replace the News section, because the News section doesn't limit the amount of displayed items which would result in a horrible amount of items over time.

 

I changed one of the lines to fix one error, so now it looks like this

 

    $data.="        <description>".stripslashes(htmlspecialchars($text))."</description>\n";

 

Can somebody help me to display the apostrophes properly?

Posted

You will need to put it in those <![CDATA[ tags, because the contents of the description may not be proper XML.

Posted

Those CDATA tags were the error I fixed. But actually, I only saw that error when I viewed the feed in a browser, not in a RSS Reader. I restored the original line, and after some final tweaking my Blog Feed is finally ready. Sweet. And thanks again!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...